get-symbol-description
Advanced tools
Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.
Weekly downloads
Changelog
Readme
Gets the description of a Symbol. Handles Symbol()
vs Symbol('')
properly when possible.
var getSymbolDescription = require('get-symbol-description');
var assert = require('assert');
assert(getSymbolDescription(Symbol()) === undefined);
assert(getSymbolDescription(Symbol('')) === ''); // or `undefined`, if in an engine that lacks name inference from concise method
assert(getSymbolDescription(Symbol('foo')) === 'foo');
assert(getSymbolDescription(Symbol.iterator) === 'Symbol.iterator');
Simply clone the repo, npm install
, and run npm test
Gets the description of a Symbol. Handles `Symbol()` vs `Symbol('')` properly when possible.
The npm package get-symbol-description receives a total of 19,078,852 weekly downloads. As such, get-symbol-description popularity was classified as popular.
We found that get-symbol-description demonstrated a healthy version release cadence and project activity. It has 1 open source maintainer collaborating on the project.