The JavaScript Intl library (ECMA 402) has used strings to identify locales since the beginning. This works well for many simple cases, and is lightweight and user-friendly. ICU uses a Locale class instead. Defining a Locale class allows the following: Parsing and manipulating the language, region and script of a locale Reading or writing the Unicode extension tags in a locale A serializable, stan
Very fast and lightweight, standards-compliant, self-hosted javascript parser with high focus on both performance and stability
es6-feature-detection.js �; ʪ� �H ʪ� var str = 'class ಠ_ಠ extends Array {constructor(j = "a", ...c) {const q = (({u: e}) => {return { [`s${c}`]: Symbol(j) };})({});super(j, q, ...c);}}' + 'new Promise((f) => {const a = function* (){return "\u{20BB7}".match(/./u)[0].length === 2 || true;};for (let vre of a()) {' + 'const [uw, as, he, re] = [new Set(), new WeakSet(), new Map(), new WeakMap()];break;
Please note that this polyfill is now in maintenance mode, as of Jan, 2023. We are not planning to add more features or enhancements. This is a polyfill for the Proxy object, part of ES6. See the MDN docs or Introducing ES2015 Proxies for more information on Proxy itself. Unlike other polyfills, this does not require Object.observe, which is no longer supported anywhere. ⚠️ Note that Firefox, Chro
In this blog post, I present enumify, a library for implementing enums in JavaScript. The approach it takes is inspired by Java’s enums. Enum patterns # The following is a naive enum pattern for JavaScript: const Color = { RED: 0, GREEN: 1, BLUE: 2, } This implementation has several problems: Logging: If you log an enum value such as Color.RED, you don’t see its name. Type safety: Enum values are
TC39ers = require('tc39-members') console.log(TC39ers); { members: { Ordinary: [ 'Adobe', 'AMD', 'eBay', 'Google', 'HewlettPackard', 'Hitachi', 'IBM', 'Intel', 'KonicaMinolta', 'Yahoo' ], Associate: [ 'Apple', 'Canon', 'Facebook', 'Fujitsu', 'JREastMechatronics', 'Netflix', 'NipponSignal', 'NXP', 'OMRONSocialSolutions', 'Ricoh', 'Sony', 'Toshiba', 'Twitter' ], SME: [ 'AXARosenberg', 'ChinaIWNCOMM'
Highlights Here are some highlights of changes in this release. New Rules no-case-declarations Better npm 3 Support Due to the changes in dependency management in npm 3, some users were getting errors when attempting to run ESLint. We’ve updated our dependencies and ESLint should now work correctly for users of npm 3. Features New: Add no-case-declarations rule (fixes #4278) (Erik Arvidsson) Enhan
In this post we are going to explore how to use ES7 features to define traits with a brand new module: traits-decorator. ES6 gave us the simplicity to create classes in a more declarative way. With ES6 modules we have also a better and clear definition of what we are exporting. Those aspects were a primary goal of Cocktail. Decorators If you are not familiar with decorators, they are pretty simila
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く