1.2.15 • Published 1 year ago

@kollorg/cumque-impedit v1.2.15

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

@kollorg/cumque-impedit 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('@kollorg/cumque-impedit');
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

point-freejsdomrdsdynamodbcurriedReactiveXenvironmentsajvgroupBymake dirInt16Arraycomputed-typesform-validationcjkquerystringlintcloudsearchStyleSheetchromestoragegatewaylistenersredactinvariantsuperstructfast-deep-clonedateclassesTypeBoxperformantcloudformationredirecttacitrgbspringhigher-orderES2018callfilterdotenvfind-upWebSocketclass-validatorArraymatchAllobjfetchIteratormobiledependenciesamazones2017chaiconcatiamrestnpmignorecreaterouteroffsethashstyleguidejQueryglobaldataviewsyntaxerrorjsdiffcommanderhtmltrimStartpromisegdprcryptoshamES2022structuredCloneinstallRxatomArray.prototype.containsentriestypedarraydescription3darraysregexpwhichMapchildendermanipulationxhrreact-hookscheckimmutableimportFloat32Arrayes8intrinsicreactutilityAsyncIteratorlanguagecss-in-jswafsubprocessreact-hook-formjoiapollofast-deep-copymkdirs0Array.prototype.includesflatstringECMAScript 2018spinnerglaciersuperagentchineseflagfullpruneprocessECMAScripttypedbuffersECMAScript 2022trimLeftnodefast-cloneSetdescriptorssqsastCSSStyleDeclarationprotocol-buffersreadECMAScript 2023zxajaxappbinarytoolkittypees2015snsES6negativeselfcolourzeroformattingECMAScript 2021columnTypeScriptforkreact animationsymlinksconstfigletpositiveregular expressioneslint-pluginReactiveExtensionsObject.valuestddcode pointsestreeeveryreadablestreamcore-jses-abstractsideECMAScript 7compilerhookformshareddeepcopycommand-lineidentifiersphoneequalityInt32Arrayregular-expressionoptionperformancetestingponyfillsetgroupqueuereducerrequireparentaccessibilitysymbolssesUint32ArraysearchdayjselbES2020apiprototypetranspiler_.extendmapvalueshimregular expressionsspeedmochaflatMapglobalThisstreamstakeemrasterisksshrinkwrapespreelibphonenumberaccessorcssconsoleyamlbyteLengthhas-ownexecutesource mapqueueMicrotaskgetoptwgetcall-bindpipedefineargvargumentnativetrimURLSearchParamspropertypureinstalleridlook-uptypanionpnpm9
1.2.15

1 year ago

1.2.14

1 year ago

1.2.13

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago