X7ROOT File Manager
Current Path:
/lib/node_modules/npm/node_modules/has-symbols
lib
/
node_modules
/
npm
/
node_modules
/
has-symbols
/
??
..
??
.npmignore
(578 B)
??
.travis.yml
(2.21 KB)
??
CHANGELOG.md
(58 B)
??
LICENSE
(1.05 KB)
??
README.md
(1.76 KB)
??
index.js
(394 B)
??
package.json
(2.05 KB)
??
shams.js
(1.7 KB)
Editing: index.js
'use strict'; var origSymbol = global.Symbol; var hasSymbolSham = require('./shams'); module.exports = function hasNativeSymbols() { if (typeof origSymbol !== 'function') { return false; } if (typeof Symbol !== 'function') { return false; } if (typeof origSymbol('foo') !== 'symbol') { return false; } if (typeof Symbol('bar') !== 'symbol') { return false; } return hasSymbolSham(); };
Upload File
Create Folder