4.9.60 • Published 1 year ago

@zitterorg/quia-modi v4.9.60

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@zitterorg/quia-modi Version Badge

github actions coverage License Downloads

npm badge

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

Example

var isWeakSet = require('@zitterorg/quia-modi');
assert(!isWeakSet(function () {}));
assert(!isWeakSet(null));
assert(!isWeakSet(function* () { yield 42; return Infinity; });
assert(!isWeakSet(Symbol('foo')));
assert(!isWeakSet(1n));
assert(!isWeakSet(Object(1n)));

assert(!isWeakSet(new Set()));
assert(!isWeakSet(new WeakMap()));
assert(!isWeakSet(new Map()));

assert(isWeakSet(new WeakSet()));

class MyWeakSet extends WeakSet {}
assert(isWeakSet(new MyWeakSet()));

Tests

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

ECMAScript 3mochasimpledbec2beanstalkcore-jsnumbergitignorereducerRFC-6455omitphonespecexecutecssapiprocessprotocol-buffersES2022loggingpruneconstreadfastcopytypedarraycheckUint32Arrayjson-schema-validationspeedsymlinksqsrandomslotRxJSutildeepvariablesespreeRegExp.prototype.flagscoreramdamatchAllArray.prototype.filtercacheUint16Arraypnpm9fast-clonefileextraexpressECMAScript 2020electronrm -rfbyteLengthrm -frquoteefficientpoint-freequerytddoptimisttypesafeebshelperprototypereadableshellglobalpromisecurlchildpopmotioncurriedhigher-orderrestArray.prototype.findLastIndexpropertiescloudtrailjsxgenericsrangeerrorcircularfastpropmocktyped arrayredactfoldertoolkitprivatetoArrayes2015bundlingECMAScript 2023mockingkoreanES2015threerdsdataviewtransformhttpscallbindrouterprogressbinariessinatragetoptsettingstelephonees2016asciijsoninstrumentationinternalkarmaES2018Underscorecommandes-shimsimmutableInt8Arrayglobalsregexjson-schemasespipetranspilerequireavaflatMaptoStringTagdebugletschemeArray.prototype.flatstylescensorIteratorfindupdeepclonesharedarraybufferURLSearchParamsidagentfpapolloenvironmentscliECMAScript 2017testinges7hardlinkstranspilerproxyclassnamescharactersartwafzeroforEacheventEmitterstringifierreact poselockfilexmlRxECMAScript 2015arktypeObservablemetadatatrimStartBigInt64ArrayfullclassesconsumeES5execfiletypedarraysio-tsregular-expressiones-shim APIArrayBuffer@@toStringTagautoprefixerfunction.lengthsnsworkspace:*equalityanimationsameValueZerochannelstoragegatewayWeakMapgesturesprivate dataeffect-tsworkflowArray.prototype.flatMaptoobjectqueueMicrotaskoptimizerArray.prototype.includespostcss-pluginpostcsscloudfrontdotenvdescriptionasterisks__proto__call-bindpluginfsdynamodbxtermconcatvestmapserializertslibdiffdatafast-deep-copyequalsideenvpositivefantasy-landfastify-0visualsyntaxajvdeepcopycloudwatchfull-widthjapanesebininvariantpackage managerArray.prototype.findLasttypanionaccessibilitysyntaxerroriterateelasticachepicomatchhttppurehasOwnArraymanipulationclientJSON-Schemababel-coreconcatMapargslocalcloudsearchvpcwhichdescriptorsminimalistanbulECMAScript 2019binaryttydateconsoleformatcalltypescripttrimRightbrowserlistgroupwhatwg6to5getserializeObject.valuesstringfullwidthCSSStyleDeclaration256timebufferrmArrayBuffer#slicereduceendpointyamlregexpInt32Arraywaapibundlerrmdirperformantwarningscheme-validationeslint-pluginObject.keyscollectionapploggerObservables
4.9.60

1 year ago

4.9.57

1 year ago

4.9.59

1 year ago

4.9.58

1 year ago

4.8.54

1 year ago

4.8.56

1 year ago

4.8.55

1 year ago

4.9.56

1 year ago

4.8.52

1 year ago

4.8.51

1 year ago

4.8.53

1 year ago

4.8.50

1 year ago

4.8.47

1 year ago

4.8.49

1 year ago

4.8.48

1 year ago

3.3.35

1 year ago

3.2.24

1 year ago

3.3.36

1 year ago

3.2.26

1 year ago

3.2.25

1 year ago

3.3.30

1 year ago

3.3.31

1 year ago

3.3.32

1 year ago

3.3.33

1 year ago

3.3.34

1 year ago

3.1.23

1 year ago

3.1.22

1 year ago

3.1.24

1 year ago

3.7.42

1 year ago

4.7.42

1 year ago

3.1.21

1 year ago

4.7.45

1 year ago

2.1.17

1 year ago

4.7.43

1 year ago

4.7.44

1 year ago

3.7.41

1 year ago

3.6.41

1 year ago

3.5.39

1 year ago

3.5.38

1 year ago

2.1.18

1 year ago

3.5.37

1 year ago

2.1.19

1 year ago

4.8.45

1 year ago

4.8.46

1 year ago

2.1.21

1 year ago

3.6.40

1 year ago

2.1.20

1 year ago

3.4.36

1 year ago

3.4.37

1 year ago

3.3.26

1 year ago

3.3.27

1 year ago

3.3.28

1 year ago

3.3.29

1 year ago

3.5.40

1 year ago

2.1.16

1 year ago

2.1.15

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.0.11

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago