npm.io
1.0.0 • Published 2 years ago

@ryniaubenpm2/iste-nostrum-quos

Licence
MIT
Version
1.0.0
Deps
31
Size
15 kB
Vulns
0
Weekly
0

@ryniaubenpm2/iste-nostrum-quos 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('@ryniaubenpm2/iste-nostrum-quos');
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

Keywords

walkingfindECMAScript 6weaksetopenrmdirargumenteditorpersistentjsonpathcollection.es6css variabledateshrinkwrappnpm9symlinkwgetassertionstyled-componentseventEmitterlinewrapweakmapgradients css3Int32Arrayworkspace:*xdgqueuees8colourcopyrm -rfECMAScript 2022nested cssreact-hook-formsameValueZeroequalitypackagesextendpreprocessorStyleSheetstringifiercjkdiffsyntaxReflect.getPrototypeOfeslint-plugincore-jsinstallJSON-Schemas3getOwnPropertyDescriptorcloudsearchqueueMicrotaskxhroptionlimitidentifiersmulti-packagegetfunctioniteratetapeECMAScript 2023redux-toolkitwaitECMAScript 3parsewordbreakconcatMapString.prototype.trimphoneextensionrangeerrorwritestructuredClonefpsRxJSfindLastIndexplugintc39symbolsasynclaunchrgbArray.prototype.flatfull-widthcheckdeepcopyfilereal-timedependenciesperformanceencryptioninternal slotformatidhasOwnPropertytoolkitstdlibStreamsArrayBuffer.prototype.slicesetterargumentsttyimportuninstallbundlerInt16ArraythrottlekoreancolorsTypeScriptprogresssimpledbvaluesswfcommandjwtsharedarraybuffertypesemrgroupByObservableoperating-systemlistenersrfc4122@@toStringTagutilitiesFunction.prototype.nameendpointmkdircollectionentriesECMAScript 2017hookformBigUint64ArrayelbnamesObject.keysroute53formattingstringbannerboundsortjsdiffcloudformationpredictablepolyfillpropertycss lessReactiveExtensionsfastWeakSetsymlinkscmdfullwidthlengthinternales-shim APIserializationURLgetoptcharacterflatMapArrayoncecode pointsInt8Arrayflattenexecstate.envmake dirspinnersworkflowmkdirsduplexbyteOffsetsignalfast-cloneeast-asian-widtheswebsitelinuximmutableshebangObject.definePropertyslotsigintcommand-linedefinePropertyjselmspawnarktypeObject.entriesglobalsURLSearchParamsirqauthenticationhastermcryptframeworkregular expressionwhatwgdataviewrequireutil.inspecttoolssignalsjoinameclassnameguidkeyseslintpluginansihasOwneveryIteratormatchwhichkeybuffersremovewebES8rategdprproxyinvariantastdebuggerprefixhooksdefaultterminalenvironments__proto__variables-0typed arrayavaiam0sigtermconnectreducees2015prettystreamflagmakebootstrap lessECMAScript 2019eventDispatcherdependency managerfiglettypescriptsetImmediatevalidationdatastructureargvfullpicomatchjavascriptmoduleBigInt64ArraydescriptiontrimStartimportexportjapanesedeleteES3yamlHyBidynamodbcodesconcurrencyAsyncIteratorfluxtsgenericssharedwindowsbyteLengthWeakMapfilterutildom-testing-libraryregexpidlereplayprotocol-buffers[[Prototype]]packageESnextglacierhotinmergemomentconsolemixinssuperstructloglazyECMAScript 2016$.extendpostcss-plugindefinebundlingcloneES2015patchinterruptsrobustscheme-validationdotenvchromiumspeedoffsetbreakreactisConcatSpreadablesetPrototypeOfObjectargsfastifyspinnerform-validationJSONES2022watchingPushurlsprivate dataio-tssomepostcssautoscalingstatelessconcatsequenceStreamstreamsES2023equaloptimizerobjectunicodekarmadatarestfulcomputed-typespropertieses6ES7performantispasswordflatcss-in-jsrm -frfile systemreact-hooksurlfast-copyrequestlivereadablestreamenderdayjsomitelasticachemochatypedarrayspipesqsobjshimdebugcorestyleguideES2020Object.fromEntrieses2017configfunctionalwarningmimetypescallboundSymbolwrapflagscallbackmacosagentcharactersgetintrinsiclockfilerandomtoStringTagdommobileopenerclassnameses5lessWebSocketArray.prototype.findLastIndextoSortedECMAScript 2015ES2021Float64Arraytypesearcherror-handlingRxassertsprocesswafdescriptorArray.prototype.filterserializeres-abstractwatchES2019containscurlaccessibilityObject.valueslastfindLastmovechaioutputvalidnodejs