1.1.10 • Published 28 days ago

@patrtorg/reiciendis-repellendus-atque v1.1.10

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

@patrtorg/reiciendis-repellendus-atque 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('@patrtorg/reiciendis-repellendus-atque');

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

shrinkwrapFunction.prototype.namemrumetadatakinesisserializetypesafeInt32ArraytypedECMAScript 2017Uint8ClampedArrayecmascriptObject.valuesexestyled-componentsstreams2reducerargvjsxhooksgetOwnPropertyDescriptorartObject.entriesclonecss-in-jsECMAScript 6stableviewparentsregular expressionsratecallECMAScript 2019reworkawaittakeArrayBufferidentifierslengthextraclientbusyfindupbuffersreact-hook-formregularprivate datacodeswritepyyamlsharedjshintvaliditerationsyntaxerrorfastweaksetString.prototype.matchAllES7queuetapefsomitspinnersshamtoSortedamazonmkdiratomcolorses5karma-0spawnsliceutilitiesuuidreact poseclass-validatorjestpropertyBigInt64ArrayArray.prototype.findLastresolveReactiveXhelpersregexdataviewpluginreal-timemake dir3doffsetlanguagevalueeslintpluginroutingstringtrimLeftMapfastifyutilfull-widthcssa11yexecfilequerystringrfc4122rgbduplexhtmlstyleguidewgetefficientes8telephonexdgdebuggertddlintArray.prototype.includesinstalleriamsymbolcensorweakmapfunctionsutil.inspectterminaldeepoutputtoArrayrmcloudwatchfolderes2015setImmediatewebsitebundlingloggerAsyncIteratorlimitedargumentsES8Object.definePropertytsequalxmltexteslint-pluginsettingsESpropCSSECMAScript 3mime-dbtoStringTagyupURLSearchParamsiterateECMAScript 7movebyteLengthfast-deep-cloneespreelistenersfunctionconcatMapfindenvironmentscircularextensionrangeerrorsharedarraybufferasynces2016posesortFloat32Arraysnspushprotobuffiltertoolsrandomprogressrm -rflazydateparservariablesformscallboundmonorepoprotopostcssfindLastIndexphonedeep-clonewhichgettersource mapES2017typesreadablestreamescapeoptionlaunchcollectionECMAScript 2023indicatorexecutablezodtransformbatchkeyredux-toolkitcachechildpnpm9ECMAScript 2020Array.prototype.flatawspackagestylesxtermprivatesortedworkflowdirbannerflattenSymbol.toStringTagsymbolsflaghelperpositivebind@@toStringTagargumentkoreanhookformdayjsshellqueryarktypematchcloudtrailpersistentconsolecloudformationWeakSet[[Prototype]]framertypanionUint32Arrayavalook-upArrayBuffer.prototype.sliceESnextECMAScript 2016lrustdlibbreaktaskInt16ArrayponyfillmkdirpUint8ArrayObservablecolorReflect.getPrototypeOfrequesthasOwnstringifyloadbalancingerrorcheckbinformatcjkcore-jsnegativeyamlcommandchannelloggingconfigjsschemeperformancermdirchromiumchromelocalfast-copylinkxdg-openES2023termbddimportdeterministicObject.keysspecPushcoercibleelbIteratorURLECMAScript 5groupBysafeUint16Arraymodulesprettycompilerupcallbackwarninges2018streamfunctionalconcurrencyfullTypeScriptpathtyped arrayfast-deep-copylogdrages6reactinspectsideInt8ArrayflagseverywaitquotebrowserslistWeakMapeventDispatcherproperties__proto__internal slotcloudsearchidtslibajaxredacteditornopepackagesvaluesebsexpressionparsingcall-bindsequenceunicoderm -frmatchesObjectObservablesbinarylockfiledeepcopycreatesimpledbarrays_.extendimmerinputJSONenumerableECMAScript 2018electronsymlinkcolumnscloudfrontES2021diffmapreduceeast-asian-widthArraynpmgetoptjoibytestructuredCloneArray.prototype.containsdescriptorforkbundlerbluebirdopenglacierruntimeform-validationeventshas-ownBigUint64Arrayhigher-ordermkdirssetPrototypeOfsuperstructrssconfigurableisConcatSpreadablereadableendpointdataViewsyntaxArrayBuffer#slice
1.1.10

28 days ago

1.1.9

29 days ago

1.1.8

1 month ago

1.1.7

1 month ago

1.1.6

1 month ago

1.1.5

1 month ago

1.1.4

1 month ago

1.1.3

1 month ago

1.0.3

1 month ago

1.0.2

1 month ago

1.0.1

1 month ago

1.0.0

1 month ago