1.0.0 • Published 12 days ago

@wemnyelezxnpm/quis-ut-officiis v1.0.0

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

@wemnyelezxnpm/quis-ut-officiis Version Badge

github actions coverage License Downloads

npm badge

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

Example

var isMap = require('@wemnyelezxnpm/quis-ut-officiis');
assert(!isMap(function () {}));
assert(!isMap(null));
assert(!isMap(function* () { yield 42; return Infinity; });
assert(!isMap(Symbol('foo')));
assert(!isMap(1n));
assert(!isMap(Object(1n)));

assert(!isMap(new Set()));
assert(!isMap(new WeakSet()));
assert(!isMap(new WeakMap()));

assert(isMap(new Map()));

class MyMap extends Map {}
assert(isMap(new MyMap()));

Tests

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

nopeframerargparsecurlenvhigher-ordergesturestapejasminees2016urlcss-in-jsvaluesArray.prototype.flatMapInt16ArraytoolkitbrowserlistflatMapvalidationYAMLargumentarrayapollographqlsharednodefast-cloneyamlratemime-dbsidefullserializegetoptmacosa11ygetterasciisameValueZerofastcloneECMAScript 7cssdefinePropertyincludessequencewebpnpm9eslint-plugindataViewstarttasklimitedpromises0Array.prototype.findLastIndexcolumndeepcopyuninstallappcopyarraybuffermomentterminaldeterministicdeepES7errorArraymkdirssetImmediatelesscssTypeBoxpackage managerdataES8user-streamsless compilersomelimitxdgobjnameloggerdescriptorfixed-widthECMAScript 2020rfc4122validatecallbackenumerableencryptionvariables in csswalkingStreamtslibmkdirshimclonelistenersreduxajaxjsdiffECMAScript 5getOwnPropertyDescriptorkeynegative zerocorsjson-schemachromerm -frpicomatchArray.prototype.containstoobjectrequestopenerhashwriteconsoleajvlazyStyleSheetlettypeoffile systemfindnamesaccessibilitypackageutilitywebsitequerystringshebangfullwidthresolvebusyObject.keysmake6to5es5airbnbFloat32Arrayoutputfigletmrudeleteprefixreacttestingequalitycommand-linereact animationerror-handlingutilES2016-0BigInt64Arrayless cssRxJSclassescoerciblebindinterruptsconsumeUint8ClampedArrayidleweaksetassertionwritablefpminimalpoint-freeArray.prototype.flatcollection.es6Symbol.toStringTagWeakMapreal-timepushWeakSetfindupintrinsicregularHyBiexpressReactiveXirqpromiseinspectreducedatastructurejestlaunchbufferseverykoreanoptionexecutableprogressArray.prototype.includesstarterpathtranspilerbluebirdrapidArrayBuffer.prototype.slicejapanesetypescriptargumentscodesArrayBuffer#slicesymlinksCSSpackage.jsonbyteutilitieses6regular expressionscompile lessES3formatspawnjQueryprotobufdiffmergeIteratortestcryptstylesaccessorpipefindLastArray.prototype.filterredux-toolkitcharacterRegExp#flagsfunctionsasyncdotenvbundlerchannelshamECMAScript 2021browserslistdirmapmatchAllcore-jstrimLeftequalcommanderexegdprtddcontainsscheme-validationtsextensionescapeECMAScript 2019optimizerrequireperformanttypeduuidObject.valuesdeep-clonewrapopensspringentriesutilskarmadataviewformES2023fastcopybyteOffsetindicatorposetc39bufferstylesheetgradients csses-shimsurlsvalidatornumberUint8Arraydeep-copyUint32ArrayES6babel-coreemojigradients css3collectionphoneshellserializationeslintpluginjson-schema-validatormake dirawaitlibphonenumberJSONparentconcatvestwatcherstablestringifiergetintrinsiciteratorrmdirexpressionreducereventEmitterUnderscoreMicrosoftthroatlockfilemoveconcatMapSetansioperating-systembcrypttyped arrayxdg-opensliceURLSearchParamsiterate3dreadablewaitcolorstrimratelimitformatting.envWebSocketfseventsschemeRegExp.prototype.flagspositiveURLecmascriptfilterartES2017loadingcachedeepclone_.extendsharedarraybufferconfigurableES2019guidhardlinksdescriptionrobustdirectorycharactersfunctionES2021jsxECMAScript 2018flattenpureweakmapstatelessshrinkwraplintString.prototype.matchAllform-validationObject.entriesinferencearktypeharmonytypedarrayprivatees2017curriedparserwidthenvironmenttouchnativebrowserTypeScriptArrayBufferstyledragreadreact-hooksnodejsbreakparsefantasy-landjsonES2015stylingdatetoStringTagdomxssArray.prototype.flattenpatchunicodecss lessregexpquerylinktrimEndiejsonpathinstallerlookcommandtakejsdomrmtrimRightprettymodulecliprune[[Prototype]]mimetypesless.jseventsECMAScript 2017fast-copytimepyyamlconcurrencyxhrjson-schema-validation$.extendes2015i18nInt32ArrayttyFloat64ArrayauthgetPrototypeOfwarningpostcss-pluginlook-upjavascriptclass-validatortesterregexstyled-componentstypespasswordvalueredactbatchpackagesiterationconstexitmimeReflect.getPrototypeOfstreams2colorworkspace:*ECMAScript 2016yupconfigobjectmatchglobtypeerrordependency managerfastifyquotefastflagses7sortmkdirpfast-deep-clonesetoncehttps__proto__Int8Arraynpmless@@toStringTagschemalinuxrangeerrorwhichawesomesaucetapwordbreakeslintsymlinkfoldercensorvariablesObject.fromEntriesprotocoresetPrototypeOfstructuredCloneslotes8toolsObjectString.prototype.trimES2018typanionmochahttpzodtypeapigroupByinvariantgenericspluginprototypevarjssanitizecheckMapboundstatusAsyncIteratorpolyfillpopmotionbddbannerECMAScript 2015hasdom-testing-libraryhandlerscomparehelperseslintconfigbootstrap lessexecgroupelectronduplexstyleguideexit-codefindLastIndexupsyntaxerrorsuperstructl10nfsECMAScript 6hasOwntrimStartmatchesthrottlebyteLengtheast-asian-widthrgbfetchinputsymbolzerodebuggerjsonschemaparentsstringifycallbindsignalastsortedchaicompilerserializertextes2018installio-tsObject.isWebSocketspreprocessorsuperagenttypesafemiddlewaresigintfromECMAScript 3sanitizationsettereventDispatchercjkstringestreecode pointsObject.getPrototypeOfcomputed-typescryptowhatwgdroppropertiesoffsetsigtermextendsyntaxviewcall-bindwatchFileObject.definePropertyqueueMicrotaskcmdomitdescriptorses-shim APIrm -rfoptimistcallboundtoSortedfast-deep-copynegativeimmutablelengthES2022persistenthookformmetadatacolumnslrumulti-packageclassnamestacitmonoreporeusegetloggingwindowsESlognested csstypedarrayshookstostringtagObservablepropregular expressiontelephonekeysinternalcolourruntimeassertsECMAScript 2022react posetraversewaapimobileStreamsstreamsxtermsearchrecursivepreserve-symlinksTypedArrayvaliddayjsqsdefinecss variabledefaultfunctionalsignalsimmer
1.0.0

12 days ago