1.0.21 • Published 2 years ago

@zitterorg/quasi-corrupti-voluptates v1.0.21

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

@zitterorg/quasi-corrupti-voluptates 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/quasi-corrupti-voluptates');

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

callbackbusyaccessorflattenparsercalldynamodbboundutilitiescryptovariableskinesisoptimizercurlmkdirasciijasmineparsejsxduplexeslint-plugincolorspromisesyntaxerrorfile systemflagbytedeep-cloneargumentlimitednumbermonorepoes-abstractieinstallfile cachefpses6colourmodulemimeInt32ArraynegativeopenzerofastifyconvertguidHyBiesFloat32Arrayes8css-in-jsprefixbrowserpropshellindicatorbeanstalkqueryfunctionsdayjsstyleguideviewtddutilityredux-toolkitstreamrequesttoArraycolumnsRxJSfullhigher-orderdataArray.prototype.findLastIndexapolloenumerablesyntaxStreamsswfisCSSemojiStyleSheetes2015ECMAScript 2017collectionarts3createtoolsvalueschaidirectoryavastreamsspecAsyncIteratorsymbolwhatwgFloat64ArraypyyamlwhichdatastructuresqsstringifierObject.getPrototypeOfprotocol-bufferschromiumFunction.prototype.namepushprettyanimationcensortelephonebuffersexpressArray.prototype.findLastpackageshamexecutablebyteOffsetautoprefixershimYAMLES7full-widthmkdirsbatchintrinsicurlcolorqueueES2018typed arraycjkparsingconfigurableequalexpressionECMAScript 2016limitarraybufferflatespreeregexlookstringweakmapBigInt64ArrayfromyupECMAScript 7momenthas-ownglobal$.extendjapaneseJSONTypedArrayfullwidthastargsthroat[[Prototype]]ES2015SymbolchromepipewalkingjsdomjsdiffhooksoffsetsetImmediateyamlmimetypessetPrototypeOfformtoobjectdescriptorsio-tsutiltypescriptinternal slotminimalfolderjavascriptfastcopysharedarraybuffercoverageautoscalingrm -frimmerwordbreakec2rmdirgroupgetintrinsicsetterstarttypeofcall-boundloadingamazoncopyeslintconfigtappreserve-symlinkshardlinksreadableelbES6rdsshrinkwrapECMAScript 2019l10n_.extendperformantArrayBufferreact-hooksnopeconcatloadbalancingtslibspawnes2018serializercommanderworkflowinputdom-testing-libraryES8class-validatorPushidgettertrimLeftmetadata__proto__Uint8ArrayES5Uint8ClampedArraydescriptionWeakMapreact poseECMAScript 2023sortedinstallerurlsObject.entriesjoicoreInt8ArraydeepdebuggercheckcloudformationcssjQueryes5getoptcommandcloudtrail.envObjectpropertiesfixed-widthjsterminalspringArray.prototype.flatnameinspectgenericsfileTypeBoxWeakSetpromisescompilerArraykarmaeast-asian-widththrottleprogressargvquerystringstylingrateidlelastmkdirpclientuninstallArray.prototype.flattenposesesCSSStyleDeclarationregular expressionstableincharacterdropaccessibilitycallboundunicodeawaitstoragegatewayoutputsequenceArray.prototype.includespackage managerreact-testing-libraryworkerreal-timewidthcachemodulesargumentsObservablesconsolepersistenttextexecbundlingRegExp.prototype.flagsreducerwordwrapdeepcopyhasOwnlistenersgetconsumesimpledbtesterflagsvalidationdeepcloneArray.prototype.flatMaprangeerrorassignsearchformatoncevpcSetoptimistObject.fromEntrieslockfile-0logenvironmentsclonehashtrimcall-bindhasstarteremrhookformchannelparenteventDispatcherrm -rfURLSearchParamses2017upcharsetfindLastenderES2016bundlergraphqlcolumnroutingmobileglobalstc39ajvbufferentriesmergeiteratorfunctionalformattingdotenvcollection.es6typeerrorwaapieventsruntimeReactiveXarraytraversesymbolsReactiveExtensionsvalidate3denvcode pointsnegative zerowritethreeeverycommand-lineairbnbratelimitexeES2019UnderscorebrowserlistobjectBigUint64ArraymruObject.isworkspace:*MicrosoftES3ECMAScript 6typesafesuperstructestreeECMAScript 2022ECMAScript 3schemaisConcatSpreadableschemekey pareventEmitteristanbulreacttypedassertionpathelectronstructuredClonedeep-copysameValueZerochineselocationprivate dataxdg-openfind-updataViewlinewraphasOwnPropertystyledebugUint16Arraypatchregular expressionsmapreduceIteratoroptionbyteLengthlook-upqssimple cachebindArrayBuffer#slicereadprunetestObject.definePropertypostcssjshintECMAScript 2020fast-deep-copyreact-hook-formequalityspinnerwrapmake dircontainsglobponyfillapivalidESinternalgetOwnPropertyDescriptorregexpmapawesomesaucebannertyperfc4122breaksnsefficientcloudfrontlengthsuperagentextraECMAScript 2015setPromise
2.2.85

1 year ago

2.2.84

1 year ago

2.2.82

1 year ago

2.2.83

1 year ago

2.2.79

1 year ago

2.1.79

1 year ago

2.2.80

1 year ago

2.2.81

1 year ago

2.1.78

1 year ago

2.1.76

1 year ago

2.1.77

1 year ago

2.1.74

1 year ago

2.1.75

1 year ago

2.1.72

1 year ago

2.1.73

1 year ago

2.0.37

2 years ago

2.0.38

2 years ago

2.0.35

2 years ago

2.0.36

2 years ago

2.0.39

2 years ago

2.0.48

2 years ago

2.0.49

2 years ago

2.1.58

2 years ago

2.0.46

2 years ago

2.1.59

2 years ago

2.0.47

2 years ago

2.1.56

2 years ago

2.0.44

2 years ago

2.1.57

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

2.0.40

2 years ago

2.0.41

2 years ago

1.0.35

2 years ago

2.1.69

1 year ago

2.1.67

1 year ago

2.1.68

1 year ago

2.1.65

1 year ago

2.0.53

2 years ago

2.1.66

1 year ago

2.0.54

2 years ago

2.1.63

1 year ago

2.0.51

2 years ago

2.1.64

1 year ago

2.0.52

2 years ago

2.1.61

2 years ago

2.1.62

2 years ago

2.0.50

2 years ago

2.1.60

2 years ago

2.1.70

1 year ago

2.1.71

1 year ago

1.0.34

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.29

2 years ago

1.0.28

2 years ago

1.0.27

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

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.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.9

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.12

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