caoge c760052ff9 机车状态修改 | il y a 8 mois | |
---|---|---|
.. | ||
.github | il y a 8 mois | |
test | il y a 8 mois | |
.editorconfig | il y a 8 mois | |
.eslintignore | il y a 8 mois | |
.eslintrc | il y a 8 mois | |
.nycrc | il y a 8 mois | |
CHANGELOG.md | il y a 8 mois | |
LICENSE | il y a 8 mois | |
README.md | il y a 8 mois | |
index.js | il y a 8 mois | |
package.json | il y a 8 mois |
Is this an ES6 Symbol value?
var isSymbol = require('is-symbol');
assert(!isSymbol(function () {}));
assert(!isSymbol(null));
assert(!isSymbol(function* () { yield 42; return Infinity; });
assert(isSymbol(Symbol.iterator));
assert(isSymbol(Symbol('foo')));
assert(isSymbol(Symbol.for('foo')));
assert(isSymbol(Object(Symbol('foo'))));
Simply clone the repo, npm install
, and run npm test