W72crm_web-master/node_modules/is-set
zhangwenzan c676fd5933 初始化crm前端代码 2025-05-27 11:25:53 +08:00
..
.github 初始化crm前端代码 2025-05-27 11:25:53 +08:00
test 初始化crm前端代码 2025-05-27 11:25:53 +08:00
.editorconfig 初始化crm前端代码 2025-05-27 11:25:53 +08:00
.eslintrc 初始化crm前端代码 2025-05-27 11:25:53 +08:00
.gitattributes 初始化crm前端代码 2025-05-27 11:25:53 +08:00
.nycrc 初始化crm前端代码 2025-05-27 11:25:53 +08:00
CHANGELOG.md 初始化crm前端代码 2025-05-27 11:25:53 +08:00
LICENSE 初始化crm前端代码 2025-05-27 11:25:53 +08:00
README.md 初始化crm前端代码 2025-05-27 11:25:53 +08:00
index.d.ts 初始化crm前端代码 2025-05-27 11:25:53 +08:00
index.js 初始化crm前端代码 2025-05-27 11:25:53 +08:00
package.json 初始化crm前端代码 2025-05-27 11:25:53 +08:00
tsconfig.json 初始化crm前端代码 2025-05-27 11:25:53 +08:00

README.md

is-set Version Badge

github actions coverage License Downloads

npm badge

Is this value a JS Set? This module works cross-realm/iframe, and despite ES6 @@toStringTag.

Example

var isSet = require('is-set');
assert(!isSet(function () {}));
assert(!isSet(null));
assert(!isSet(function* () { yield 42; return Infinity; });
assert(!isSet(Symbol('foo')));
assert(!isSet(1n));
assert(!isSet(Object(1n)));

assert(!isSet(new Map()));
assert(!isSet(new WeakSet()));
assert(!isSet(new WeakMap()));

assert(isSet(new Set()));

class MySet extends Set {}
assert(isSet(new MySet()));

Tests

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