zhibo/archive/extras/live-streaming/client/node_modules/get-symbol-description
2025-12-22 11:14:06 +08:00
..
.github chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
test chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
.eslintrc chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
.nycrc chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
CHANGELOG.md chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
getInferredName.d.ts chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
getInferredName.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
index.d.ts chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
index.js chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
LICENSE chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
package.json chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
README.md chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00
tsconfig.json chore: archive live-streaming and client directories to archive/extras 2025-12-22 11:14:06 +08:00

get-symbol-description Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Gets the description of a Symbol. Handles Symbol() vs Symbol('') properly when possible.

Example

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');

Tests

Simply clone the repo, npm install, and run npm test