symbol
ES6 Symbols in your ES5.
Last updated 9 years ago by seanmonstar .
MPLv2.0 · Repository · Bugs · Original npm
$ cnpm install symbol 
SYNC missed versions from official npm registry.

Symbols

NPM version

ES6 Symbols, in your ES5.

If Symbol is already defined, it will be used. Otherwise, this implements as much of the Symbol spec as is possible with plain JavaScript.

Usage

var Symbol = require('symbol');
var key = Symbol();

var obj = {};
obj[key] = 'foo';
console.log(obj[key]); // 'foo'
console.log(Object.keys(obj)); // []

Current Tags

  • 0.2.3                                ...           latest (9 years ago)

1 Versions

  • 0.2.3                                ...           9 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org