Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

License

NotificationsYou must be signed in to change notification settings

inspect-js/get-symbol-description

github actionscoveragedependency statusdev dependency statusLicenseDownloads

npm badge

Gets the description of a Symbol. HandlesSymbol() vsSymbol('') properly when possible.

Example

vargetSymbolDescription=require('get-symbol-description');varassert=require('assert');assert(getSymbolDescription(Symbol())===undefined);assert(getSymbolDescription(Symbol(''))==='');// or `undefined`, if in an engine that lacks name inference from concise methodassert(getSymbolDescription(Symbol('foo'))==='foo');assert(getSymbolDescription(Symbol.iterator)==='Symbol.iterator');

Tests

Simply clone the repo,npm install, and runnpm test

About

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

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks


[8]ページ先頭

©2009-2025 Movatter.jp