You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Here is a collection of ES6 one liners to show off! NodeList to Array:
Object properties were traditionally left unprotected in JavaScript or hidden, captured in a closure. Symbols and WeakMaps provide another alternative. Both Chrome (version 36) and Firefox (version 31) support WeakMaps. Chrome 36 supports Symbols but it’s necessary to enable Experimental JavaScript at chrome://flags/#enable-javascript-harmony. Firefox supports symbols from version 33. function pri
実装されたメソッド Object.setPrototypeOf(target, proto) targetオブジェクトのプロトタイプをprotoに設定する 返り値はtargetで、protoはオブジェクトまたはnullである必要がある 解説 ES5で導入された Object.getPrototypeOf のセット版である。 これにより __proto__ を使わなくても動的にプロトタイプをセットできるようになった。 例 オブジェクトに配列のメソッドを継承させる arrayLike = { length: 3, 0: 'a', 1: 'b', 2: 'c' } arrayLike.forEach // undefined Object.setPrototypeOf(arrayLike, Array.prototype) // 『Array.prototype』をarrayLikeの『プロトタ
State of function decompilation in Javascript It’s always fun to see something described as “magic” in Javascript world. One such example I came across recently was AngularJS dependency injection mechanism. I’ve never been familiar with the concept, but seeing it in practice looked clever and convenient. Not very magical though. What is it about? In short: defining required “modules” via function
Stop Writing JavaScript Compilers! Make Macros Instead The past several years have been kind to JavaScript. What was once a mediocre language plagued with political stagnation is now thriving with an incredible platform, a massive and passionate community, and a working standardization process that moves quickly. The web is the main reason for this, but node.js certainly has played its part. ES6,
New version of this blog post: inside “ECMAScript 6: new OOP features besides classes”. Copying all properties of one object to another one is a common operation in JavaScript. This blog post explains ECMAScript 6’s implementation of it, which is called Object.assign(). This merging operation has a name in the JavaScript ecosystem that is only used there (and, unfortunately, clashes with classic O
Update 2017-05-08: a proposal for SIMD.js has been rejected, in favor of providing similar functionality via WebAssembly. Recently, a new JavaScript feature has landed for the next Firefox Nightly: an API for SIMD (Single Instruction, Multiple Data). This blog post explains how the API works and how it fits into the JavaScript landscape. What is SIMD? SIMD is the ability of a CPU to apply an opera
Updates: [2015-01-05] ParallelJS has failed. It apparently wasn’t powerful enough. Its experimental implementation will be removed from SpiderMonkey (Firefox’s JavaScript engine). [2013-12-28] A low-level JavaScript API for SIMD is another avenue for parallelization (within a single processer core). JavaScript is still a very sequential language. That is slowly changing. This blog post describes P
New: our code is available on github. For a quick tour of the Coq development, click here. The JSCert project aims to really understand JavaScript. JSCert itself is a mechanised specification of JavaScript, written in the Coq proof assistant, which closely follows the ECMAScript 5 English standard. JSRef is a reference interpreter for JavaScript in OCaml, which has been proved correct with respect
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く