1.0.0 • Published 2 months ago

@saoviettest/sint-voluptates-numquam-voluptate v1.0.0

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

@saoviettest/sint-voluptates-numquam-voluptate 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('@saoviettest/sint-voluptates-numquam-voluptate');

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

streams2s3preprocessornodeUint16ArrayprettyforEachcloudwatchbootstrap lesskeysECMAScript 2018typedarrayscomputed-typessequenceshamArray.prototype.flatjsonpasswordTypedArrayconsumeamazondebuggerterminalgradients css3ES2018lockfilekarmavaluesperformantes-shim APItoSortedcall-boundarraysquotewhichObject.definePropertyurlloadbalancingshellformattingvisualECMAScript 2022reducerjQuerysometddbytebuffers.envnegative zeromixinscharacterslimita11yUint8Arraystyled-componentscloudtrailJSONECMAScript 5safefast-copyzeroec2testinghookformpropertycachespecboundcall-bindframeworkruntimeschemacompile lesscharacterInt32Arrayfile systemonceArrayBuffer.prototype.slicehasOwnlocationgenericsecmascriptrfc4122traverseawesomesaucees5optionavaqueryUint8ClampedArraydayjscss variableserializationchromiumrm -rfvalidvariablessettersnsconcatMapiterationargparseiamassignES6directoryfixed-widthelbArray.prototype.findLastcommandgraphqlunicodetsObject.entriesnpmpositivedefinePropertystreamfunctionObject.fromEntrieskinesisfilterpackage managerairbnbObject.keyspushlinewrapbufferes2015elasticachesyntaxprototypeuuidtostringtagcssl10nansiautoscalingreadreusestringInt16ArraybyteLengthfpsfindLastshebangwrapoutputiteratorupjwtutilmakehigher-orderrangeerrorargumentpreserve-symlinkscode pointsReactiveExtensionslrudeleteflatfast-deep-clonedom-testing-libraryMapgetOwnPropertyDescriptorPromiseexpresspackagesmomentESnextgettoStringTaggroupByparentsincludeswalkingmaptoobjectartxhrdotenvinstallerisdescriptionlivepersistentdeep-copyECMAScript 2020sameValueZeroschemeeverystoragegatewayvalidatefindLastIndexFloat32Arraycloneroute53tslibduplextesterparserflagssetPrototypeOftelephoneponyfillrdsredux-toolkitcommand-linewatchFileReactiveXHyBiindataObject.valuesjsxeast-asian-widthendereslint-pluginformatassertreduxmatchtypesafeTypeScriptmrudateemitjoiesvariables in cssweaksetBigUint64Arraylastpackage.jsonworkflowStreamlintparentECMAScript 2021texttypescriptimmerbindString.prototype.trimtypedopeninspectshimpatchpostcss-pluginhelpersES2020mobilesuperagentsymlinkECMAScript 3serializemergeRegExp#flagsFloat64ArrayrmwidthstableslotprotobuffromconfigconcatWeakSetcryptRxJSloggingsesencryptiontestjavascriptAsyncIteratorutilitiesObject.getPrototypeOfbreakRegExp.prototype.flagssqsjsdomclassnameselmmatchesjasmineinvariantlessinternalFunction.prototype.namerequirelistenersequaldataviewgetPrototypeOfgdprutilitystreamsfast-clonesetImmediatereplaylazyoptimizerdependenciesdefinedescriptorspnpm9viewaccessibilitylook-updebugcolorperformanceflatMapenvironmentjsonpathgradients cssrmdirespreeSetimmutableObject.isassertionredacttimeobjectCSSStyleDeclarationUnderscorereadablestream
1.0.0

2 months ago