1.0.0 • Published 15 days ago

@ptkhanh94npm/minima-fuga-fuga v1.0.0

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

@ptkhanh94npm/minima-fuga-fuga Version Badge

github actions coverage License Downloads

npm badge

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

Example

var isWeakMap = require('@ptkhanh94npm/minima-fuga-fuga');
assert(!isWeakMap(function () {}));
assert(!isWeakMap(null));
assert(!isWeakMap(function* () { yield 42; return Infinity; });
assert(!isWeakMap(Symbol('foo')));
assert(!isWeakMap(1n));
assert(!isWeakMap(Object(1n)));

assert(!isWeakMap(new Set()));
assert(!isWeakMap(new WeakSet()));
assert(!isWeakMap(new Map()));

assert(isWeakMap(new WeakMap()));

class MyWeakMap extends WeakMap {}
assert(isWeakMap(new MyWeakMap()));

Tests

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

invariantnode256matchletnegative zeroxhrlaunchbddcolourmakeratenpmdirObject.valuessharedtrimEndeventslintmrupreprocessorIteratorstatuscopydependenciesweaksetstreamsbatchpackageArray.prototype.filterArray.prototype.flattenclass-validatorframeworkES2017tacititerationl10nrequirecolorslastcirculardeep-copyarrayvalidateurlslook-upsignallruArrayvaluesquotequeuejoipreserve-symlinkswindowsrmcomparebootstrap lessrm -rfmonorepocompile lessforEachfastcopyqsjwtopenArrayBuffermobileautoprefixercurlonceES2020collectionfantasy-landautheslint-pluginchannelassertmake dirjasminemoveinstallregulartelephoneformatArray.prototype.findLastIndexjsescryptophonebusyexitlinkchaiwatchcachestatelesses7transpileawaitfile systemmatcheschineseAsyncIteratorlazymimetypesidlefunctionjQuerysharedarraybufferschemareact-testing-librarycryptpositivegraphqlstringifierfastifyreal-timewatcherthreeshebang$.extendsanitizepackagessameValueZerojsxpasswordWeakMapInt16Arraytraversereactmkdirpvaluespeedperformantemitkoreanhttpbannerequalitywidthurl.envStyleSheetstructuredClonedebugdescriptionwrapcallboundbundlerCSSStyleDeclarationconsumeratelimitimportFloat32ArrayhttpsrandombrowserslistkeyhasassignponyfillcoreESES2022URLmetadataqueueMicrotaskgetPrototypeOfwgetextensionpatharraybuffertapedataviewfindefficientyamlcss-in-jsrfc4122walkcoercibleiteratoremoji__proto__toobjectdom-testing-libraryescapestarterMicrosoftairbnbES2023internal slotestreeserializeWebSocketscomputed-typeswalkingnegativeform-validationECMAScript 2018toSortedidtrimLeftlesscssArray.prototype.containsfind-upaccessibilityfunctionscorsassertionpipetypaniontypesafeutilitiesduplexappJSON-SchemachromeruntimegenericsopenerjsonpathcodesUint8ArrayintrinsicnamesargumentsES6JSONreducerECMAScript 5debuggerredact0pnpm9findLastcharactersexecvalidator_.extendcallbackdeepgroupwatchingflattenviewposeincludesrgbrecursivetsdragdotenves2016Array.prototype.flatMapfilterelectronbluebirdtoolkitkeysstyled-componentsfindLastIndexmochavariablesECMAScript 2015loadinges2018artio-tsECMAScript 2019ansigesturespureECMAScript 2023takegetprotobufvareventEmitterclassnameFunction.prototype.nameprocesscurriedjsonwordwrapsymbolsECMAScript 2017columnstypeerrortypedarrayUint8ClampedArraythroatdirectorydeepclonecss nestingdefaultcall-bindprotocol-bufferseslintconfigyupchromiumhandlerschildshellflagpopmotionpersistentfast-deep-clonees-abstracteventDispatcherjson-schema-validationgetintrinsicsigtermSymboltermaccessormergefullwidthassertszeroanimationwriteconsoleFloat64ArrayhelpersutilregexpawesomesauceprogressajaxcmdnativebyteLengthrmdirtypeddescriptorCSSentriescss lessecmascriptflatWebSocketvestES2021harmonyconfigexit-codesignalspicomatchpruneguidwaitReflect.getPrototypeOfsyntaxutil.inspectjsdomdeep-cloneReactiveXdatedayjsmkdirfastnodejsHyBiwordbreakprivatesorttouchshimzodauthenticationmixinseditorconfigurableArray.prototype.findLastapinested cssdeepcopyES2018errora11yuninstalllengthcommand-linejson-schemamomentxdgECMAScript 2016RxJStypeofsuperagentlessarraysUnderscoreglobbrowserlistexecutabletranspilerparsefunctionalStreamsdependency managerspawnTypeBoxlanguagees-shimsgetterminimalpushtypedarraysPushlinewrappromiseswhichweakmapcssWeakSetnopestringifylinuxstylesheetbindspringreact-hooksfigletinterruptsInt8Arrayfastcloneproppostcss-pluginparsershamformattingeslintpluginserializationoperating-systemlibphonenumberasyncuser-streams6to5eslintbyteOffsetdescriptorsclixdg-openBigInt64Arrayless mixinshasOwnSetstableES2015react poseinspectfindupes-shim APIunicodefilereadableStreamflagslimitedArrayBuffer.prototype.slicesequencebabelwaapireducereusees2017clientmatchAllrm -frlistenerses8mime-dbfromdropObservablesimmutableresolvebrowserfulloptimizerbundlingutility-0regular expressionsinputObservableloggingspinnersObject.israngeerrorwatchFile3dRegExp#flagsenvrapidcensorinferencecall-boundworkerInt32Arrayconcatsyntaxerrorsomees5i18nprivate datafsreduxString.prototype.trimtrimRightttyoptionstreamless compilerdeterministictypefast-deep-copymodulesECMAScript 2022ES7formreadpostcssequaljson-schema-validatorUint16Arraywebsitemimexssiterateajvsuperstructcommanderror-handlingstyleswritableRegExp.prototype.flagsdatafast-cloneArray.prototype.includessettervisualreadablestreamsettslibtimefixed-widthObject.getPrototypeOfless.jsstylegradients csstestES2016lockfileavaObject.keysinstallerbootstrap cssvalidationquerystring@@toStringTagtestingmodulereact-hook-formthrottlegetOwnPropertyDescriptorfull-widthlimitMapomitdefinePropertyfast-copystreams2buffereast-asian-widthSymbol.toStringTagquerycommanderimmertypestextgetoptreact animationenumerablebreakbuffersYAMLURLSearchParamsless cssclassnamesdatastructurerequestpolyfilltoStringTaggradients css3Object.assignstringisConcatSpreadableRxObjectextendmacosdeleteformsterminalhardlinksprettyeverycolumnramdacharactersettingsgroupByString.prototype.matchAllkarmasideiecolorhashexpressarktypejsonschemaclassesReactiveExtensionspoint-freeArrayBuffer#slicecode pointstrimStartfseventsconnectprototypeobjtesterPromisevalidcloneast
1.0.0

15 days ago