2.5.21 • Published 1 year ago

@juigorg/corrupti-corrupti-minima v2.5.21

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

@juigorg/corrupti-corrupti-minima 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('@juigorg/corrupti-corrupti-minima');
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

private dataMapkeyeventDispatcherArray.prototype.filterquerystringduplexisConcatSpreadableInt32Arraylrucall-bindstartjsdiffFunction.prototype.namesnsutilityhookshasOwnhasemitpropdebuggroupBykinesisutileslintconfiges-shimsstylespushponyfillsyntaxerrormergestableelectronenumerableimportexportwordwrappackage.jsonastconcurrencyserializationworkspace:*touchYAML3dtakesequencecurlArrayBuffer#sliceECMAScript 2018RegExp#flagsES2023hookformrm -rfmatchchildtypedsimple cachefastifyjoicolorsvalidationcoverageframerisopenlintscheme-validationstringifyconfigcolouronceroutinges5Object.definePropertylockfilespeedutil.inspectUint8Arrayaccessibilitymkdirswfpromisereact-testing-libraryregularhas-ownshimseslimitsham@@toStringTagStyleSheetWebSocketregexpmkdirpwgetxtermspinnerelasticachetyped arrayconsumepluginiamrecursiveterminalfunctionwafbyteOffsetES2020avavpcrangeerrorassertunicodetoolkittypaniondescriptioncommandnodeJSONcircularcollectionECMAScript 3argumentdescriptorsflagsdirectoryjsxflatMapmimetypesuuidhttpquoteBigInt64Arraygenericscode pointsmruURLsetPrototypeOfObject.valuesString.prototype.trimbatchapiInt16ArrayefficientiterationdotenvvalidateratelimitObject.entriesapollobusyrmdirUnderscorefastcopyobjectgesturesinferencemapform.envbluebirdmatchescryptolimitedpostcsstextmapreducerobustprotobufES2016extension256tsdragtypeofdateargumentskeysCSSmake dirloadingsafepopmotionnodejsECMAScript 2021bundlersortednativetypesautoprefixerpackagesttynegativeprocesspackage managerfast-deep-clonewhatwgoptimizerfullwidth
2.4.18

1 year ago

2.2.17

1 year ago

2.4.17

1 year ago

2.2.15

1 year ago

2.2.16

1 year ago

2.5.21

1 year ago

1.1.14

1 year ago

2.5.20

1 year ago

1.1.13

1 year ago

2.5.18

1 year ago

2.3.17

1 year ago

2.5.19

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.1.12

1 year ago

1.1.9

1 year ago

1.0.9

1 year ago

1.1.11

1 year ago

1.1.10

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