1.0.0 • Published 1 year ago

@tea07001/aperiam-tempora-quaerat v1.0.0

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

@tea07001/aperiam-tempora-quaerat 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('@tea07001/aperiam-tempora-quaerat');
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

ES2019replaysetImmediateflagsoffsetcollection.es6coerciblegetoptenumerablewebimportexportcompilerES2020MapextensionsigintObject.keysflatMaptypescriptBigInt64ArrayECMAScript 5irqescaperestextendrecursivekarmaamazonECMAScript 2015structuredClonegetintrinsicparentsnumbermobilebundlingnpmmimeobjtoolkittsbuffersignalsfigletnopelinkcloudwatchgetPrototypeOfappdescriptorwalkingdefinePropertyRFC-6455mkdirpreact-testing-libraryArrayBuffer#slicergbsnsdeepcopyObjecttrimEndfunctionmime-dbsidehasOwnPropertyjsdomdatestateviewsequenceArray.prototype.filtertextestreestoragegatewayemrfunctionsES2018routingarraysterminalprivate datafswordwraplrulintjoiJSON-SchemaprogressCSSrobustprototype__proto__ObservablePushansisymlinkmergeregular expressionmatchAllruntimereadableFloat64ArraytrimRightguidgradients csspropertiesspinnersvisualunicodeeslintconfigmapreduceastsameValueZeromkdirURLSearchParamsroute53RegExp.prototype.flagsconfigstringifierhigher-orderdeep-cloneeventsjQuerywritablespecdeep-copyoptimistreactless.jshttpsfile systemqueuenested csseventEmitterpropertyparselimitedArray.prototype.includesformattingcommandloadbalancingargvcjkStreamstypeofgroupByiterationpromisecodesdependenciesfixed-widthboundoperating-systemreadablestreamio-tstddbuffersglacierchinesejsxArrayBuffer.prototype.slicematchshrinkwrapcollectionstreamses2016negative zeroiteratecall-bindSymbol.toStringTagpackage managerbluebirdcreateformatstylesheetpositivebrowserslistl10nownwalkworkspace:*pruneECMAScript 7filtertraverseidlecloneasyncFloat32Arraydeterministiccurlcode pointssharedFunction.prototype.namesymlinksRxJSfastcopystatelessString.prototype.trimmakefullwidthdescriptorswordbreakmove_.extendvariablessuperagentmkdirsmonorepotestingoptionfast-deep-copycallboundcoloreslint-plugininterruptsRegExp#flagsInt8ArrayconsoleES5proploggingbcryptUint32ArrayparentES2016globes-shimsgettercall-boundfseventsdiffdom-testing-libraryswfYAMLfull-widthfast-copyplugincss variabletimeES2023watchingawscloudformationclass-validatorless cssentriescommand-lineslicegetdeepclonedefinefunctionalrouteECMAScript 2023wgetkinesismomentfastclonetakeinvariantfinduppostcssclassnamespicomatchfast-cloneECMAScript 3bootstrap csses-shim APIwatchFileObject.getPrototypeOfchaihookslinewrapTypeScriptinferenceincludesless compilertslibbeanstalkcheckrm -frexitbytewidthlazywatcherregexrapidprocessforEachelmhotpromisesisrdsjsoncloudsearchs3whichStreamgetOwnPropertyDescriptordatastructureUint8ArrayfpsconfigurableJSONtypedObject.definePropertydeleteObject.isstyleguideasciihelperssyntaxtrimredux-toolkitcharactersES8stylekeywatchconsumetrimLeftutil.inspectdirectoryslotlibphonenumberelbec2clitoolssettingsURLfullmruTypedArraymapzerowindowsWeakMapsearchES2015throatsqstelephonereact-hook-formtypedarraywhatwgiamfind-upconcatMapObservableses-abstractcallbindreaddirchannelECMAScript 2021internalstreams2stylesart256ponyfillutilpathrmdirUint16ArrayreusejasmineopenimmutablefetchshimintrinsicReflect.getPrototypeOfinstallerprotoconnectrmscheme-validationshellpredictableclassnamerm -rfvalueESnegativedataViewnamestyled-componentstrimStartMicrosoftsafeassertsUint8ClampedArraylistenerstouchRxtaskdayjspolyfilldependency managerapitesterES2021workflowcss-in-jsECMAScript 2016eslintpluginajviteratorajaxfast-deep-cloneperformantjsdiffInt32Arraycompile lesscssObject.assignmimetypesBigUint64Arrayreal-timedebuges5simpledbES3tc39javascriptbatchlockfileassignbusyspinnercryptoyupreducerwrapzodsuperstructlognativebyteLengthlimitpnpm9jsjwti18nfastifyReactiveExtensionseslinttypedarraysflatemojihardlinkseventDispatcherhash-0stdlibtoobjectES6importprotobufcopyquerystringclassesObject.fromEntriesvestlessArraysetPrototypeOfecmascript
1.0.0

1 year ago