3.2.68 • Published 2 years ago

@zitterorg/laudantium-deleniti v3.2.68

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@zitterorg/laudantium-deleniti Version Badge

github actions coverage License Downloads

npm badge

Is this value a JS SharedArrayBuffer? This module works cross-realm/iframe, does not depend on instanceof or mutable properties, and despite ES6 Symbol.toStringTag.

Example

var assert = require('assert');
var isSharedArrayBuffer = require('@zitterorg/laudantium-deleniti');

assert(!isSharedArrayBuffer(function () {}));
assert(!isSharedArrayBuffer(null));
assert(!isSharedArrayBuffer(function* () { yield 42; return Infinity; });
assert(!isSharedArrayBuffer(Symbol('foo')));
assert(!isSharedArrayBuffer(1n));
assert(!isSharedArrayBuffer(Object(1n)));

assert(!isSharedArrayBuffer(new Set()));
assert(!isSharedArrayBuffer(new WeakSet()));
assert(!isSharedArrayBuffer(new Map()));
assert(!isSharedArrayBuffer(new WeakMap()));
assert(!isSharedArrayBuffer(new WeakRef({})));
assert(!isSharedArrayBuffer(new FinalizationRegistry(() => {})));
assert(!isSharedArrayBuffer(new ArrayBuffer()));

assert(isSharedArrayBuffer(new SharedArrayBuffer()));

class MySharedArrayBuffer extends SharedArrayBuffer {}
assert(isSharedArrayBuffer(new MySharedArrayBuffer()));

Tests

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

amazonlocalgetintrinsicmergetranspilermockingautoscalingcryptomatchchineselengthstyled-componentscode pointshasrm -rfrouteimmutablehelperdateservicetoStringTagprotobuftoReversedspawngraphqlforkbrowserTypeScriptprefixES7httploggersortedphonespeedenvarraydescriptionregularairbnbidentifiersexpresses-shim APIoptimisttrimRightexecfilehooksfunctionalcompareArray.prototype.flatMapECMAScript 3HyBisharedarraybufferfind-upyamlelectrontyped arrayprettystreamsECMAScript 2023Object.values0concatlockfileelbprotocol-buffersES2017ES8package managerstringeventDispatcherutilitiesframerreact animationUint16Arrayremovecoreglobrgbflagseslint-pluginpackage.jsoncomputed-typesfastclonel10neslintECMAScript 5characterdompinoinspecttestYAMLcallArray.prototype.flatdescriptorsxhrchannelunicodestreamgitignoreloges6zerocensorpatchemitfull-widthkarmaaccessoriddependency managerflagclistringifyjson-schema-validatorStreamsajaxfast-deep-cloneterminalcloudfrontcoveragerecursiveproptypedom-testing-libraryfront-endES2021class-validatora11ytrimdataViewiteratelruspinnerswarningpoint-freemetadatagroupObservablesArrayBuffer#sliceECMAScript 2018fullshimfetchlinkStyleSheetpromisedragjsxpreprocessoromitprotochildgetterredirectparentInt16ArrayTypedArrayecmascriptArray.prototype.containsi18naccessibilitytacitfindconcatMapfolderES2022es-shimsworkerbinarySymboldotenvsuperstructRFC-6455Object.fromEntriesform-validationparsenamescollection.es6shellmockeseverycoercibleregular expressiontypeoftraversepicomatchmake dirECMAScript 2021swfposesinatrafplooknodejsutilcodesponyfillgetUnderscoreinreducemkdirsroutingwaitreducercircularsetstyleshtmlserializerdebugurlfindLasttostringtageffect-tsenvironmentsdynamodbglacierclonesimpledbURLSearchParamstddvisualimmerserveres2017WebSocketajvArray.prototype.includesgesturesbundlerieisConcatSpreadableclassnameuninstallReflect.getPrototypeOfUint32Arraychaijsdiffformsimportexportwhatwgexecuteanimation.envtrimEndoptionwafdependenciesinstallhttpsreact-testing-librarydeep-clonejson-schemaredux-toolkitES5trimLeftObject.keysRegExp.prototype.flagsweaksetoptimizermanagercontainsfnmatchfeedReactiveExtensionscloudtrailtslibjestrandomperformancesettingsawsInt8Arrayarktypezodruntimebusyhigher-ordershebangObject.definePropertyreversedschemefindupdataviewmanipulationeslintpluginweakmapBigInt64Arrayes2016mapebscreatecore-jsdescriptordayjseslintconfigmakesharedquerystringtapshamfullwidthuser-streamsuuidtranspilesymbolshas-owndefineProperty@@toStringTagtoolkitloadingRxJScallbackes8npmfast-copyprocesscommand-lineletinputarraybufferclassnamesignorebddbuffersArrayBufferfunctionbufferinternalboundec2snscall-bounddifftc39JSON-SchemastructuredCloneclassesnativestyleguidevarpostcss-pluginregexpqueuesesprogressredacttypedarraysio-tsstylematchAllpropertiescolorstrimStartECMAScript 2019gdprmobileECMAScript 2020filterbabel-coresuperagentmulti-packageestreeutil.inspectfilextermPushES2023forEachhasOwnPropertyappbrowserlistreal-timeRegExp#flagsconfig[[Prototype]]walkcharactersupjsECMAScript 2022serializeESproxyxmlflatMapbannerrdshandlercloudwatchlasttoobjectguidcolordropbinariesjapaneseintrinsicoutputMapdeeprequestESnextcurriedcloudformationtransportaststringifierObservable3dstoragegatewayapiownsetPrototypeOfutilsprunedataES2020cssIteratorcachenegative zeroendpointlook-upvalidatorincludestsArrayemridleloadbalancingapolloprototypeArray.prototype.findLastIndexfigletcolumnsoncejsdomfastifyerrorspecArrayBuffer.prototype.slicetypedefficientdeep-copySetreact-hook-formobjectstablewritableglobalsprivate datatermframeworkartbinwidthinstallermochaWebSocketsES3colourMicrosoftrestespreefile systemcss-in-jsgetPrototypeOffast-deep-copyURLelasticacheloggingserializationbindexpressionjQueryAsyncIteratorreversethreeArray.prototype.findLastpackagejshintsubprocessFunction.prototype.namevalidateregexcommanderextendexecfindLastIndexeventsrouterescapeObject.islistenersECMAScript 7fromsettertypeerrorworkflowfunction.lengthobjtextstylingUint8ClampedArrayStreamfast-cloneECMAScript 2015internal slotformtypesafeconsoleenumerablecolumnflatString.prototype.trimtypedarrayFloat64Arrayjson-schema-validationroute53String.prototype.matchAllWeakMapkinesisreadablestreamwhichagentresolveoffsetyupdeepclonetouchwebsorttypescriptECMAScript 2016privatemonorepoextramodules256validenvironmentpopmotionsafecloudsearchrangeerrormrumapreducemomentsome-0clientcheckcollectionregular-expressionrmdirrmreadpyyamles2018requirewaapiflatteneast-asian-widthregular expressionsargvpackagesgroupBywalkinginferencees2015utilitycopypnpm9Symbol.toStringTagiteratorsqsrestfulperformantfsindicatorObject.getPrototypeOfjsonassertsRxreadablelibphonenumbercurlpolyfillES6writevarsWeakSetchromesymbolviewquotemodulebyteLengthdirectoryinvariantfixed-widthnamecall-bindquerypropertyequalbyteCSSStyleDeclarationPromiseReactiveXdeepcopyECMAScript 2017rssjsonschemalanguagewgetpositivetransformpluginscheme-validationES2016npmignorees7definekoreanttyjasmineautoprefixervariablesfantasy-landspinneres5queueMicrotaskmkdirfast_.extendgenericsargumentreworkmovehookformcallbindglobalruleschromiums3deterministicJSONconsttakeObject.entriesasciimkdirpparserrapidansijoifunctionsTypeBoxassignsearchpostcssArray.prototype.filterES2015slicebabelsetImmediatevpcpushcommandes-abstractvestiamconfigurableconsumeistanbuldebuggeracornschemakeystarterminimalcallboundpipeasyncnegativeback-endbeanstalkBigUint64ArrayformatslotharmonyshrinkwrapECMAScript 6argslocationqssameValueZeroES2019toArray
3.2.68

2 years ago

3.2.67

2 years ago

3.2.66

2 years ago

3.2.65

2 years ago

3.1.65

2 years ago

3.1.63

2 years ago

3.1.64

2 years ago

2.1.63

2 years ago

2.1.61

2 years ago

2.1.62

2 years ago

2.1.60

2 years ago

2.1.58

2 years ago

2.1.59

2 years ago

2.1.56

2 years ago

2.1.57

2 years ago

1.0.19

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.26

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

2.0.48

2 years ago

2.0.49

2 years ago

2.0.46

2 years ago

2.0.47

2 years ago

2.0.44

2 years ago

2.0.45

2 years ago

2.1.54

2 years ago

2.0.42

2 years ago

2.1.55

2 years ago

2.0.43

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.40

2 years ago

2.0.53

2 years ago

2.0.54

2 years ago

2.0.51

2 years ago

2.0.52

2 years ago

1.0.42

2 years ago

2.0.50

2 years ago

1.0.41

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.11

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago