1.0.0 • Published 2 years ago

@f1stnpm3/quo-vel-sed v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@f1stnpm3/quo-vel-sed 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('@f1stnpm3/quo-vel-sed');
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

operating-systemstoragegatewaypreserve-symlinkstraversenamesmapreduceuuidECMAScript 2021extendshebangHyBireduxpackage managertypanionveststructuredClonewordwrapString.prototype.matchAllrecursiveponyfillspecparentstesterpropchinesestylecomparees5bluebirdzeronodejsarraybuffersnsstringesstablexdg-openfunctionsautoprefixerexecutableresturlsmatchesjasminekinesisbootstrap lesscloudsearchdebuggerweaksettimewritedeleteflatUint16ArrayownhttpArray.prototype.flatcall-bindshamfindLastIndexinspectxdgglobalsunicodebytehardlinksconnecteventEmittercoerciblees2016glacierinferencesinatrareact-hook-formelectronwebsearchIteratordependency managerdebugrequireforEachmiddlewareES2017optimizertrimRightjavascriptESreplaysetImmediatestreamsURLSearchParamsjwttoolsrgblockfilemovereusegenericsopensfullopenerparsebuffersdeepcopyquerygroupRxdirectorysigtermwhichvisualWebSocketObservablesreactstartuninstallwebsitepatchschemacallbindtrimLefthelperstaskkarmareact-hookshas-ownflagsyupdefaulttextECMAScript 2022assertiongradients cssdataviewlookArray.prototype.findLastnumbercommand-linesameValueZeroastcensorcreatenested csseslintfast-deep-copyoutputJSONebsCSScharacterStyleSheetincludesparentprocesscorsprivate dataStreamutilitywatchargumentavaJSON-SchemawatchingStreamsprotoidentifiersUint32ArrayduplexutilitiesbufferArray.prototype.containsvalidchromiumargsES2018browsermakelessrm -frchannelelasticachesidehoteslintconfigArrayBufferreduceURLiswrapenderschemecommanderdeeppasswordestreehttpstc39exit-codeES2022immerMicrosoftSymbol.toStringTagfilter[[Prototype]]flatMapresolvecolorArrayBuffer.prototype.slicecss lessnodeidjestglobiamdatastructureencryptiontapiterationhashargvtypedenvironmentformattingRFC-6455invariantredux-toolkithookformconfigdescriptorratelimitmodulestostringtagargumentssymbolsObject.entrieslruPromisepostcss-plugindiffframeworkclassnamecontainsrmdirperformancecloudwatchwatcherfpscloudfrontregular expressionreadablestreampolyfillimportgetoptReactiveExtensionsassertinminimalprivaterouterMapoptimistprogressrm -rfFloat64ArrayequalitychromefullwidthcjkbcryptsetcryptoxtermInt16ArraycheckextensionyamlESnexta11yfind-upviewmatchAlljQueryObject.assigntsphonefseventsfunctionalqueueMicrotaskUnderscoreECMAScript 2023awaitdayjsjapanesevarslazybootstrap cssObject.getPrototypeOfsqsFunction.prototype.namenegative zeroUint8ArraycryptES5qssymlinkjsoneast-asian-widthfigletbddbyteOffsetTypeScriptemojislotkoreanbusygradients css3descriptionnopejsdomArray.prototype.flattenpropertiesloadingpackagesrdsArray.prototype.findLastIndexspinnersfileRegExp.prototype.flagsArrayBuffer#slicewatchFileprefixhandlersmkdirpurl0css-in-jsmkdiriteratewarningexeccallbackes7Uint8ClampedArrayes2015mergeutiltypescriptstylesheetkeyscloudtrailmime-0omitReflect.getPrototypeOfSetguidformatES3testdataViewequalfindupargparsejsdiffiteratorvariables in cssimportexportsortxhrArray.prototype.includes
1.0.0

2 years ago