1.0.0 • Published 14 days ago

@f1stnpm2/minima-atque-molestias v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
14 days ago

@f1stnpm2/minima-atque-molestias 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('@f1stnpm2/minima-atque-molestias');
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

ES6bootstrap lessextensioncommand-lineartlastgetPrototypeOf6to5hashcontainssetPrototypeOfperformantjoiObject.definePropertyArrayBuffer#sliceframeworkless mixinsreact-testing-librarypropertycryptpackage managershelllimitsortedloadingeventEmitterObjectreduxcorsargumentpyyamlserializationsettesterdatastructureES2019takenumberbluebirdconcurrencyCSSlistenerssigtermprettyeslintconfigwgetcirculardombusyuser-streamscharactercheckmruwaitcallboundsharedfast-deep-clonelookismimetypesafel10nsanitizationArray.prototype.findLastidlepathphonechromestartermime-dbtranspilerObservablecolorsnegativeschemaapinested csses2015nodethreeterminalexpressionES2015debugfolderclasseslinuxdirectorycomputed-typessortdragfind-uplockfileReactiveXECMAScript 2022flagpostcssfunctionsoptionvaluesomitmatchexecutablejsonlinewraparraybufferrequestimmutablemergeES5regularUint8ClampedArraycolumnsideObservablestrimRightutilitytypesgroupByminimalTypedArrayparseurltranspilekeyautoprefixerinvariantloggerirqpreserve-symlinksexpressmochawindowsflattencoretypescriptcolumnsbundlingUint8ArraytapeAsyncIteratortslibjsonschemabcryptsigintmatchAlldeleteinputuuidInt8ArraybannertypeoftrimEndjQueryBigInt64ArrayparentES2016compilergetteransitacitflagsbabel-corewatchpromiseObject.keyses-shimswalkingECMAScript 7iea11ypoint-free256makeexitloggingmimetypesrapidsettertrimStartdataviewslotcss variableobjastshimdatastructuredClonedefinePropertysignalsString.prototype.matchAllcss lesspasswordTypeScriptexecchildFloat64ArrayutilsRegExp.prototype.flagsgraphqlconcatMapes2018estreestreams2dependencieshttptostringtagpluginpropeventDispatcherchromiumhttpsnopevestiteratorECMAScript 2020json-schemalength[[Prototype]]argvfilterprocesstoStringTagglobstartreducercreatewatcheryamllruhooksRxJSObject.getPrototypeOfmomentstatelessjson-schema-validationjsshrinkwraptrimLeftObject.entrieserror-handlingiteratecryptoFunction.prototype.namepipedeepcopyutilsequenceArrayBuffer.prototype.slicees8queueconsoleawesomesaucejavascriptECMAScript 6launch@@toStringTagstylingmonoreporegexexesomefulltapcall-bindmapcmdauthentication$.extend__proto__classnamejsdomdom-testing-libraryresolveframerHyBifetchopenstyped arraysyntaxstyled-componentsinternal slothasOwnwatchingbddcss nestingfantasy-landeverywalkReactiveExtensionsexit-codebrowserlistduplexMicrosoftcore-jsInt32ArrayopentestefficientthroatdirES2020fastifywarningincludesintrinsicclientformatpostcss-plugindependency managercurlfullwidthrm -rfcallbackrgb0styleguidelintstylebootstrap csspurebyteLengthcall-boundWebSocketramdaES2017descriptorsassertionanimationvalidES3errorprotocol-buffers3delectronObject.valuesopenerBigUint64ArraywebconstsignalES2023sanitizeextendform-validationratelimitquerystringfast-clonebindvalidatecurriedvisualassertpruneperformancetimeisConcatSpreadabletelephonesettingssafeyupWeakMapflatMapprefixSymbol.toStringTagnamesarktypegradients cssgenericsgetOwnPropertyDescriptorhasfindLastwidthnpmkoreanwriteairbnbformses2017Streamsuninstallbundlerdeep-copyPromisereadablestreampackagesharmonymetadatacss-in-jslesscssstatusimmerlinkwordwrapTypeBoxtypanionSetpackagerfc4122slicermconcatmatchesbatchfromboundfsindicatorURLwritableposegetoptmulti-packageSymbolWeakSetio-tsredacthookformstreamsconfigECMAScript 3typedgetintrinsiclibphonenumberMapString.prototype.trimArray.prototype.flattenObject.assignStreamspinnersarrayenumerablefindupoffsetCSSStyleDeclarationreact animationcolorwebsitekeystraversefixed-widthbufferpopmotionvieweslint-pluginmkdirscommanderlimitedweaksetjsdiffstylespersistentmacosmkdirunicodejwtargsqueueMicrotaskRFC-6455ES8ECMAScript 2017protobufsharedarraybufferinstallerasciiJSONapolloES2018private dataInt16Arrayenvgesturespreprocessortc39make dirUint32Arrayreducecliclonecollection.es6Uint16ArraycssdefaulteditorchinesemovewraprecursivevalidatorESnext
1.0.0

14 days ago