Yankun168 cb620fbdc3 5.10存档 1 rok temu
..
LICENSE cb620fbdc3 5.10存档 1 rok temu
README.md cb620fbdc3 5.10存档 1 rok temu
index.js cb620fbdc3 5.10存档 1 rok temu
package.json cb620fbdc3 5.10存档 1 rok temu

README.md

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)); // []