2.3.26 • Published 1 year ago

@juigorg/quam-possimus-quos v2.3.26

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@juigorg/quam-possimus-quos 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('@juigorg/quam-possimus-quos');

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

Object.definePropertymulti-packagewatchFileES2021removehardlinksruntimeajvsuperstructless csselmtypedarraymkdirsArray.prototype.flatMapstringifyemri18ndeleteobjectES2017datastructurestyled-componentscompilerdayjsArrayBuffer#sliceCSSStyleDeclarationtrimoptimizerasciicallbindtestkinesisxhr__proto__stringifiercommand-linearraysvaluessnssymlinkstypeofiamansiiteratorMicrosoftlookreadtypedarrayschromiummonorepordscolumndebuggerfast-cloneES5awaiturlvariables in cssregular expressionwordwrapcall-bindstringlivelanguageassertiontask[[Prototype]]styleweakmapformebsduplexvariablesFloat32ArrayprettypyyamlcoercibledescriptorpromisetypeStreamprivate dataReflect.getPrototypeOfautoprefixerinspectURLSearchParamshasOwnexpressiontelephonelesslocationArray.prototype.flatkoreanReactiveExtensionsloadbalancingUint32Array.envcompile lesswrapscheme-validationStyleSheeteslintpluginenvironmenteslint-pluginfindLastIndexconcatMapastcloudsearchreplayformsHyBies-shimsObject.fromEntriesreactArray.prototype.flattenprotocorefunctionalbrowserslistinstalltapeoutputes6serializationprefixonceBigInt64ArrayECMAScript 2016parentlastfast-deep-clonewordbreakdomJSONfullfunctionsconsolestreams2Int16ArraykarmawidthArray.prototype.findLasttermfindLastfileECMAScript 2018ES2019Array.prototype.filterfunctioncollection.es6immerObject.isidmiddlewarestablejwtintrinsicclassnamesflattenoptimistECMAScript 2023bddschemeajaxbyteOffsetArray.prototype.containswriteutilitieschinesefastclonenodeMapUint16Arraydebugec2ES6_.extendpredictabletrimEndstyleguidenegativeextendparentscolorAsyncIteratorstatelesshooksboundObservablesjsonpathworkerconsumeprotocol-bufferses2018matchesRFC-6455class-validatorjasminefile systemincludespicomatchYAMLlintjsdifflinewrapcloudtrailspecjsgraphqlmkdirpchaihookformflagspreserve-symlinksIteratorESbusyES2022flatMapl10nfastifycall-bounddropcircularutilPushES2023everyfromjsdomreducepasswordprivateslicetostringtagtrimStartcallboundECMAScript 2021bootstrap lessschemaRegExp.prototype.flagsECMAScript 7sessyntaxerrortypessqsarktypeframeworkcorsargscopypathmovees2015authenticationreusehasOwnPropertyStreamsrequestspinnerArray.prototype.includessyntaxreducerstructuredClonenopeisConcatSpreadablettyfindupfilteroptionowncheckECMAScript 3reduxdependenciestddhelpersdotenvrm -frconnectdynamodbemojiprunees-abstractelectronlrumobileSymbollimitedmake dirbluebirdmapminimaldataViewtraversedeepcloneassertssharedawesomesauceutil.inspectfolderregular expressionsRxJSdirpreprocessorgetOwnPropertyDescriptorcodesyamlgettercallbackFunction.prototype.namecssclientstylingerrorprotobufratetapstreamsreact-hook-formes-shim APIroutingwatcherTypeScriptwarningcontainsmetadatavalidationquotecss-in-jsECMAScript 2022gradients cssieArray.prototype.findLastIndexbuffercloudwatchcore-jsinternal slotSymbol.toStringTagclipropinvariantcryptvestWebSocketcharacterscolumnstakeupio-tsvpccloudformationshrinkwrapyupqsstreamcolourutilityObject.valueszoddeepworkspace:*ES8es5timeregularregexlockfilewafserializerasyncimmutablenested csssymboltstypescriptWebSocketsless compilersetPrototypeOftoobjectshebangECMAScript 2020statewatchoffsetlibphonenumberendershellgradients css3websidereact-hookstoSortedinternalmergedescriptorscjkdeep-clonepackagespropertieshas-ownqueuesetImmediatemimetypessettings-0trimLeftpersistentglaciersymbolsuuidcallhashURLunicodematchnpmcachedom-testing-librarypackage managerless mixinsfluxextrabanneres2016pnpm9swfSetthroatstylesheetECMAScript 5forEachnamemruvalidaterfc4122classescss variablebootstrap cssbreakpositiveeventDispatcherrmsomeespreeloggerpushtyped arrayString.prototype.matchAllmoduletoolkitjsonnativetc39ArrayBuffer.prototype.slicesearchmodulesReactiveXdataECMAScript 2019estreewhatwgwgetvisualcss nestings3definewhichmkdirESnextidleflagredactwatchingiterateobjECMAScript 2017groupUnderscoresuperagentformatterminalmime-dbhigher-orderCSSperformantform-validationspeedfastopenmapreducequerystringencryptionArraywalkingES3slotloggingequalworkflowkeyrequireclassnameObject.entriesArrayBufferprogressparserarraybufferroute53cryptoautoscalingrobustcommandflatrecursiveenvpromisesRegExp#flagsponyfillTypeBoxWeakMapcensorpostcss-pluginredux-toolkitcomparestoragegatewaytext@@toStringTagUint8Arraylook-uptypedviewsortedreadablecurltouchObject.keysTypedArrayshim$.extendsameValueZerotestermochaguidsequencefindfast-copyformattinghassymlinksetterObject.getPrototypeOfInt8Arrayes2017inputInt32Arrayreact-testing-libraryindicatorfullwidthomitcss lessjavascriptreadablestream256deepcopysharedarraybufferjoiinstallertypeerrorbeanstalkrgbentriesvalueapolloObservableeventslimittslibwalkkeysarraystarterbundlingdirectoryvalid
2.1.18

1 year ago

2.1.19

1 year ago

2.3.24

1 year ago

2.1.23

1 year ago

2.3.23

1 year ago

2.3.26

1 year ago

2.1.21

1 year ago

2.3.25

1 year ago

2.1.22

1 year ago

2.1.20

1 year ago

1.1.16

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

2.2.23

1 year ago

1.1.15

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago