Too Long; Didn't Read<strong><em>This </em>article</strong> <strong><em>originally appeared on </em></strong><a href="https://dormoshe.io/articles/es8-was-released-and-here-are-its-main-new-features-15" target="_blank"><strong><em>dormoshe.io</em></strong></a> The new features of the ECMAScript specification 8th edition This article originally appeared on dormoshe.io This article was translated in
The ECMAScript proposal “String padding” by Jordan Harband & Rick Waldron is part of ECMAScript 2017. This blog post explains it. Padding strings # Use cases for padding strings include: Displaying tabular data in a monospaced font. Adding a count or an ID to a file name or a URL: 'file 001.txt' Aligning console output: 'Test 001: ✓' Printing hexadecimal or binary numbers that have a fixed number
概要 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 ] 」
https://atnd.org/events/82619 の資料です スピーチ http://niconare.nicovideo.jp/watch/kn1937
About the speaker: Jafar Husain is Netflix's Cross-Team Technical Lead and has 16 years of experience in the industry. He's currently a member of the TC39, the Javascript standards body designing the next version of JS. He specializes in building web servers and clients using functional reactive programming, and was the first user of the Reactive Extensions Framework. He's also the architect of F
example.md Examples Logging Zone class LoggingZoneSpec { constructor() { this.name = 'logging'; this.prefix = ''; } onInvoke(parentZoneDelegate, currentZone, targetZone, callback, applyThis, applyArg) { console.log(this.prefix + 'Enter Zone:', targetZone.name); this.prefix += ' '; try { return parentZoneDelegate.invoke(targetZone, callback, applyThis, applyArg); } finally { this.prefix = this.pref
In this blog post, I show six tricks enabled by new ES6 features. At the end of each section, I point to related material in my book “Exploring ES6” (which is free to read online). Enforcing mandatory parameters via parameter default values # ES6 parameter default values are only evaluated when they are actually used. That lets you enforce that a given parameter be provided: /** * Called if a par
Introduction ECMAScriptとは何か?ECMAScriptの嘘は嘘と見抜けるように results matching "" No results matching ""
テンプレートエンジン不要?JavaScriptで文字列処理を簡潔にするTemplate literal 高津戸壮(株式会社ピクセルグリッド) これまでのJavaScriptでは、複雑な文字列処理はテンプレートエンジンを使うことが一般的でした。しかしECMAScript 2015(ECMAScript 6)では、パワフルなTemplate literalが標準で利用できるようになりました。この新たに追加されたTemplate literalについて、概要とサンプルコードを紹介します。 これまでの文字列組み立て ES6で追加されたTemplate literalを使うと、文字列をより柔軟に、シンプルに組み立てることができます。例えば、これまでのJavaScriptでは、文字列を組み立てるために、例えば以下のような方法を取る必要がありました。 var name = 'john'; var cou
TypeScriptを使ってECMAScript 2015時代のJavaScriptを先取りしよう! わかめまさひろ(株式会社トップゲート) わかめです。これから、TypeScriptを使ってECMAScript 2015スタイルのコードを書く方法を紹介します。連載の初回となる本稿では、ECMAScript 2015やTypeScriptの魅力について、TypeScript用エディタの案内をしていきます。 TypeScriptとは? TypeScriptはMicrosoft社が開発しているAltJSの1つです。AltJSとは、ある言語Xから、JavaScriptへと変換(トランスパイル)して使う言語の総称です。Typeという名の通り、JavaScriptの世界に静的な型付けを持込み、JavaやC#のようにコンパイル時に整合性のチェックを行うことができるようにしたものです。 見事チェックにパ
Warning: This blog post is outdated. Instead, read chapter “Modules” in “Exploring JavaScript”. At the end of July 2014, TC39 [1] had another meeting, during which the last details of the ECMAScript 6 (ES6) module syntax were finalized. This blog post gives an overview of the complete ES6 module system. Module systems for current JavaScript # JavaScript does not have built-in support for modules,
Check out my book (free online): “Exploring ES6”. Updated version of this blog post: chapter “New Array features”. This blog post explains what new array methods ECMAScript 6 will bring and how to use them in current browsers. Note: I’m using the terms constructor and class interchangeably. Class methods # Array has gained methods of its own. Array.from(arrayLike, mapFunc?, thisArg?) # Array.fro
ECMAScript version 5 is the latest complete version of JavaScript available and is implemented in every major browser, but ES6 is in the works and promises a much better world for JavaScript developers with features such as a simple class syntax, arrow functions, built-in promises and the like. It doesn’t stop there, though; we’re already looking ahead to ES7 while ES6 is still cooking in the oven
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く