1.0.0 • Published 12 days ago

@lambrioanpm/esse-dolorum-placeat v1.0.0

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

@lambrioanpm/esse-dolorum-placeat Version Badge

github actions coverage License Downloads

npm badge

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

Example

var isWeakSet = require('@lambrioanpm/esse-dolorum-placeat');
assert(!isWeakSet(function () {}));
assert(!isWeakSet(null));
assert(!isWeakSet(function* () { yield 42; return Infinity; });
assert(!isWeakSet(Symbol('foo')));
assert(!isWeakSet(1n));
assert(!isWeakSet(Object(1n)));

assert(!isWeakSet(new Set()));
assert(!isWeakSet(new WeakMap()));
assert(!isWeakSet(new Map()));

assert(isWeakSet(new WeakSet()));

class MyWeakSet extends WeakSet {}
assert(isWeakSet(new MyWeakSet()));

Tests

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

cmdplugintelephonedatastatuschromeWeakSetspecforEachsanitizationeslinteslintpluginFloat32ArraystylesheetasyncES6postcss-pluginrecursiveES5classnamebabel-coreECMAScript 5css lesstypedarraytrimRightes2018ECMAScript 2016escapeequalityWebSocketsconnectparsertypeofpreserve-symlinksassignparentReactiveExtensionsredux-toolkiti18nnumberobjectuuidprotocol-buffersdefinesuperstructcontainshttpsgetBigInt64Arrayfantasy-landreact-hooksstringifygetterpackageCSSStyleDeclarationnamesFunction.prototype.namebusyObject.getPrototypeOfefficientes2016findLastIndexString.prototype.matchAllairbnbpurebrowserslisthaserrorlimited[[Prototype]]deletenested cssmiddlewareshellapilesscsscorsES2023vestdom-testing-libraryvaluepoint-freeprunenegative zerocrypttrimEndrequestoffsetnodejsxhrgetintrinsicArrayBuffer.prototype.slicesymlinksstylelruformseslintconfigutilsfindwalkclassnamesa11yphoneES2017TypeScriptshebangjsUint8ArrayInt8ArrayiscurriedglobnativeslotawesomesauceutileventDispatcheres6bddsignalscodesawaitfullwidthwidthterminalastxdg-openes2015less compilerECMAScript 6xssfigletconcatinspectcheckmatcheseveryObject.valuesArray.prototype.filterstarterworkspace:*tc39childstreams2compareprogresskarmainvarianttimestylinghardlinksexitconcatMappropcore-jscallprefixcoerciblesyntaxerrorregexarktypefast-clonewindowssearchgesturespatchURLSearchParamsindicatorHyBithroat3dfunctionalbrowsereslint-pluginObject.ispostcssreact-hook-formmobilees8Promiselastjavascriptargselectronwhichtslibframeworkschemelanguagepersistentreducetestingconfigurabledayjssymboloptimistcss variablekeyrobusttoArrayvalidationTypedArraybyteOffsetUnderscorekoreanarraybufferES2015east-asian-widthtranspilereact-testing-libraryweaksetjoiramdacss-in-jswordbreakdateposedotenvmomentisConcatSpreadableshimmkdirgenericsmimemulti-packagedefaultfolderargumentfindupwarningrm -rftermpasswordlibphonenumbertypesafeAsyncIteratorpathsettypescriptfileemitcallbackpromisesRegExp.prototype.flagsjsonschemaiterationbreakjsonES2018sigtermtrimredactsharedarraybufferspringObject.definePropertyievarfilterdiffconstsetPrototypeOffpUint16ArraystatelesswatchECMAScript 2015cloneiterateexpressionreact animationanimationvaluesbuffershrinkwrapJSON-Schemaexecharacterviewfile systemwatchFiletoolkitjsonpathaccessorimmertypeerrorCSSchaiinstallerenvironmentloggeridleMaprm -frRxJSwaapicollection.es6styled-componentsdeepartkeysyupdomdebugmime-dbbootstrap cssArray.prototype.containscallbindansicode pointsextensionreduxrangeerrortranspilerclischemaflatMapsanitizees5optimizercomputed-typesdeep-copyString.prototype.trimmimetypesexit-codeshamtyped arraystreamsfast-deep-clonemonorepotoobjectECMAScript 2020launchwrapparsepositivespawndropquotecollectionfastifyES2016typeobjmapcssObservablesESJSONscheme-validationrmtestES3boundform-validationprettyperformantdeepcopychannelArray.prototype.flatbabelapollotraverseregularwalkingtypanioncall-bindautoprefixerES8cjkes-shimsgradients css3mocharegular expressionwhatwgbannercommandMicrosoftPushsyntaxvalidbindjapanesecss nestingconsoletaskopenerencryptionjsdomes2017RxSetbufferses-abstractequalweakmapquerystringObject.fromEntriesprivate datamergeupsortedargumentsformformatuser-streamsfind-upopensregexpexecjsxarrayTypeBoxurlgraphqlduplexstringifierdescriptorwatcherfromimmutable_.extendpropertywritablefseventstacitUint8ClampedArrayformattingWebSocketemojiauthESnextpipeinterruptswget-0clientvariables in cssdependency managersymbolstakeirqsameValueZerocallbounduninstallECMAScript 2021command-lineArrayReactiveXjQueryratelimitpackage.jsoniteratorresolveflatreadablestreamnamecryptolookframerregular expressionschromiumYAMLopentstoolsbatchbundlingoutputunicodeprocesses-shim APIlinewrapdatastructurejson-schema-validatorstyleguidechinesesetterstructuredCloneutil.inspectconfigmake dircircularArray.prototype.findLastmoveparentstrimLeftcompile lessrmdirdeep-cloneconsumepicomatchletfunctionsECMAScript 2017@@toStringTagflattencall-boundfast-copyserializationstablepromisethreeloadingtapjwtdirentriesmatchlistenersdependenciesreusehttputilitieses7Symbol.toStringTagArray.prototype.includeseslook-uphooksjestl10npopmotionRFC-6455lesspyyamlmixinsdataviewIteratorprivatetypedarraysfastclonesidereducerminimalECMAScript 3optiontapeomitreacttesterassertmetadatadescriptorsnegativegroupgetOwnPropertyDescriptorurlsrandomsuperagentgroupByURLcolorsspinnerendertextremoverfc4122higher-orderfindLastInt32ArraylinuxArrayBuffer#slicereadinputsafespinnersaccessibilitydragdataViewnpmES2021Int16Arraystylesguidajaxpnpm9cachepackage managermru.envauthenticationpackagesreact posegdprhashflagclass-validatorRegExp#flags6to5lengthArray.prototype.flattenintrinsicfixed-widthfastlockfileless csslinkObject.keysbootstrap lessqscensornopegradients cssserializewaitxdglimitstreamES2020mkdirsFloat64Arrayfsreal-timeECMAScript 2022nodetypedjsdiffonceeditorestreeargparseajvECMAScript 2019requiretypeseventsrateArrayBuffermoduletouchbrowserlistponyfillloggingio-tsObject.entriespropertiesES2022watchingvalidatecommandersortdescriptionfastcopyxtermprotoECMAScript 2023apptostringtagfetchqueueargvvariablessharedavaperformanceWeakMapassertsruntimeenumerableless mixinstrimStartfullworkerwebsitespeedsliceexecutableextralintweboperating-system
1.0.0

12 days ago