1.0.0 • Published 1 year ago

@hoangcung1804npm/quasi-quos-aut v1.0.0

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

@hoangcung1804npm/quasi-quos-aut 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('@hoangcung1804npm/quasi-quos-aut');
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

eslint-plugintoobjectescapereduceinassertwrapconfigurablegenericslazyfilecurlbundlerbrowserslistbluebirdmobiledeepclonepolyfillJSONtestcolumnsasyncAsyncIteratorstreamassertsreactnames$.extendfastSymbolmime-dbfindLasttrimoncechromiumFloat32ArrayformattingpostcssSettypedarraysmake dirmatchAll_.extendurlvalidinstallercreatetakeintrinsicmkdirpECMAScript 5browserrgbdescriptionimmutablequeueMicrotaskRxJScheckmovetrimEndmkdirfast-deep-copycryptofastclonepatchpropertylibphonenumberArrayBuffer#sliceqsawaiteslintES2016visualstyleECMAScript 6noderequiregroupcachepropfspackagetaskInt16ArrayUint8ArrayWebSocketsautoprefixerprettycollection.es6querystringreact-testing-libraryES2023rangeerrorWeakSetObject.fromEntriesshimbootstrap less0symlinksuuidjsonsimpledbfolderArray.prototype.findLastIndextssuperagentlook-uptypedmixinssidefullwidthstatelessfull-widthlesscsstextflagsmapreducedateclassnamestyled-componentsjavascript__proto__inferencedebugnoperedirectRegExp.prototype.flagsglacierdom-testing-libraryInt8ArraystructuredClonesnspropertiesObject.entrieses8validationentrieseast-asian-widthefficientArray.prototype.flatMapcallnegativetoSortedrequesttypesafesameValueZeroeslintplugintypeerrorshellRxframeworkFunction.prototype.namewhatwgdefinejasminespinnerfind-upless.jsless mixinspersistenthttpdeep-cloneflagprotobufincludesbusytypeinstallhashcssspeedapollojestlimitedcss nestingoutputeventEmittervalidateio-tsObject.assignRegExp#flagsexpressionconcatES2019slotWebSocketObject.isautoscalingBigUint64Arraynegative zerohasOwnPropertygradients css
1.0.0

1 year ago