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
This blog post describes the options you have for deploying ECMAScript 6 in current JavaScript environments. It is selective w.r.t. the amount of tools it covers. If you want a comprehensive list of tools, I suggest you look at Addy Osmani’s “ECMAScript 6 Tools”. Consult the blog post “Using ECMAScript 6 today” for an overview of ES6 features. Using ECMAScript 6 today # What options do you have f
const digraph = require('digraph-tag') let graph = digraph` A -> B B -> C C -> D D -> A ` graph.vertices.size // === 4 graph.incoming.get('A').size // === 1 graph.incoming.get('A').values().next().value // ['D', 'A'] graph.outgoing.get('A').size // === 1 graph.outgoing.get('A').values().next().value // ['A', 'B'] // or with objects! let lhs = {node: 'left hand'} let rhs = {node: 'right hand'} let
มนุษย์เรียกพวกมันว่า “หายนะ”—สัตว์ร้ายที่ไม่รู้จักและทำลายล้างซึ่งจู่ๆ ก็ปรากฏตัวขึ้นบนโลก เพื่อท้าทายความหายนะเหล่านี้ เทพนักษัตรได้ปลุกมนุษย์ 12 คนที่เรียกว่านักบุญ แต่มีอีกหนึ่งคนที่ตื่นขึ้นมา—ผู้ไม่ถูกเลือกแต่เป็นฮีโร่ที่ยิ่งใหญ่ที่สุดของทั้งหมด Geon Lee พันธมิตรของเขาหักหลังเขาและทิ้งเขาให้ตาย แต่ตอนนี้ 20 ปีต่อมา เขามีพลังมากขึ้นกว่าเดิมและพร้อมที่จะสอนบทเรียน “วิสุทธิชน” เพื่อนของเขาที่พวกเ
概要 配列を作る2つのArrayのスタティックメソッドが実装された。 Array.from(arrayLike, mapfn?, thisArg?) 配列のようなものから配列を作る便利なメソッド。 例 DOMに配列のメソッドを適応したい時、 今までは [].slice.call(document.getElementsByTagNames('p')).map(mapfn, thisArg) これがこう書ける Array.from(document.getElementsByTagNames('p'), mapfn, thisArg) 外部参考リンク Firefox 32 で Array.from が実装された - hogehoge @teramako Array.of(...items) 引数から配列を作るメソッド。 例 Array.of(1) // [1] Array.of(1, 2,
Show lines around each change Show the changes in full context Timestamp: Mar 30, 2015, 12:20:43 AM (10 years ago) Author: benjamin@webkit.org Message: Start the features.json files https://bugs.webkit.org/show_bug.cgi?id=143207 Reviewed by Darin Adler. Source/JavaScriptCore: Start the features.json files to have something to experiment with for the UI. features.json: Added. Source/WebCore: featu
This blog post is outdated. Please read chapter “Generators” in “Exploring ES6”. This blog post is part of a series on iteration in ES6: Iterables and iterators in ECMAScript 6 ES6 generators in depth Generators, a new feature of ECMAScript 6 [1], are functions that can be paused and resumed. This helps with many applications: iterators, asynchronous programming, etc. This blog post explains how g
概要 「new.target」とは、ES2015で導入されたビルトインクラスのサブクラスを作る上で欠かせない存在である[[newTarget]]を取得するためのメタプロパティである。 従来の問題点 ES5まではArrayのようなビルトインクラスを適切に継承したサブクラスを作ることができなかった。 ES2015からのプロトタイプ設定機能を使うと可能であり、このようになる。 class Stack extends Array { constructor( ...args ) { var stack = new Array( ...args ) return Object.setPrototypeOf( stack, Stack.prototype ) } clear() { this.length = 0 } } しかし毎回このように書かないといけないのはスマートではない。 できればこの様に書
概要 Reflectオブジェクトはグローバルに存在し、演算子がするような作用や、内部的に行われているような作用をメソッドの形で提供する。 記事更新履歴 [2016/03/23] ES2016でenumerateトラップが削除されるのに対応 [2015/03/24] 公開 実装されたメソッド Reflect.has ( target, key ) [4.8.9] 「 key in target 」とほぼ同じ*1。 Reflect.get ( target, key, receiver? ) [4.8.9] 「 target[ key ] 」とほぼ同じ*1だが、オプションでゲッターのthisとなるreceiverを指定できる。 Reflect.set ( target, key, value, receiver? ) [4.8.187] 「 target[ key = value ] 」
Stay Relevant and Grow Your Career in TechPremium ResultsPublish articles on SitePointDaily curated jobsLearning PathsDiscounts to dev toolsStart Free Trial7 Day Free Trial. Cancel Anytime. Key Takeaways ES6 allows developers to simulate classes and inheritance with JavaScript, a prototype-oriented language, facilitating the creation of large applications for the web. ES6 introduces new semantics
Moving Codecademy to ES6, Webpack, and React How we build our web-based learning interface March 18, 2015 When Codecademy was born in the summer of 2011, the natural choice for a frontend stack was Backbone + jQuery. Backbone was less than a year old and widely considered the state-of-the-art framework for creating frontend applications. Combined with jQuery, one could do a lot of novel things wit
material-fluxというFluxアーキテクチャの実装ライブラリを書きました。 Fluxって何?と思う人は以下などを見ると良さそうな気がします。 React: Flux Architecture - Video Tutorial Series @eggheadio Fluxとはなんだったのか + misc at 2014 - snyk_s log Fluxアーキテクチャの覚え書きを書いた - snyk_s log The Flux Quick Start Guide Getting To Know Flux, the React.js Architecture ♥ Scotch What the Flux? (On Flux, DDD, and CQRS) — Jack Hsu なぜ作ったか IDE readable(machine readable)なライブラリが欲しかったのがひと
Current advancements in ECMAScript are a great opportunity, but also a challenge for the web. Whilst adding new, important features we’re also running the danger of breaking backwards compatibility. These are my notes for a talk I gave at the MunichJS meetup last week. You can see the slides on Slideshare and watch a screencast on YouTube. There will also be a recording of the talk available once
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く