liangjiahao 8f813121f8 添加查看按钮的窗口 %!s(int64=3) %!d(string=hai) anos
..
.github fcedc92fa0 完成了基础 %!s(int64=3) %!d(string=hai) anos
test fcedc92fa0 完成了基础 %!s(int64=3) %!d(string=hai) anos
.eslintignore fcedc92fa0 完成了基础 %!s(int64=3) %!d(string=hai) anos
.eslintrc fcedc92fa0 完成了基础 %!s(int64=3) %!d(string=hai) anos
.nycrc fcedc92fa0 完成了基础 %!s(int64=3) %!d(string=hai) anos
CHANGELOG.md fcedc92fa0 完成了基础 %!s(int64=3) %!d(string=hai) anos
LICENSE fcedc92fa0 完成了基础 %!s(int64=3) %!d(string=hai) anos
README.md fcedc92fa0 完成了基础 %!s(int64=3) %!d(string=hai) anos
getInferredName.js fcedc92fa0 完成了基础 %!s(int64=3) %!d(string=hai) anos
index.js fcedc92fa0 完成了基础 %!s(int64=3) %!d(string=hai) anos
package.json 8f813121f8 添加查看按钮的窗口 %!s(int64=3) %!d(string=hai) anos

README.md

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