3.6.101 • Published 10 months ago

@erboladaiorg/nam-officiis v3.6.101

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

@erboladaiorg/nam-officiis 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('@erboladaiorg/nam-officiis');

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

utilfastkoreanObservablesInt16ArrayglacierebsoffsetrecursiveexpresssyntaxerrorObservablettywritablechineseenvironmentspreprocessorbabel-coreperformantvalidatorchildECMAScript 2018fullwidthECMAScript 2017redirecttermconsolefeedrobustESnextansiwaitfast-deep-clonegesturesajvzxcompilerterminalassertiondebugvalidateignoreECMAScript 7lintmonorepo.gitignoregenericsjson-schema-validationloggingtrimLefttddslicegetintrinsicdataviewstreamoutputautoprefixerECMAScript 6findcallbackchromefastifySymbol.toStringTag6to5whatwgframeworkchaifpcurlfolderquerystringdefinePropertyhooksmake dirArray.prototype.findLastIndexwafStreamsserializationECMAScript 2021parseflattenweaksethashcode pointsgetterECMAScript 2015requiremomentArray.prototype.findLastidlepropertyes2018protoES2017trimRightmkdirpreduxES2020apolloshellimportcopyiamformates2015l10ndebuggerECMAScript 3deep-cloneES2021beanstalkoptimizertypesafeObject.fromEntriespackage.jsonsuperagentmkdirES7sameValueZeropackagepyyamlsqstypeerrorhelpershelperfastcloneeast-asian-widtherrorentriesguidgetOwnPropertyDescriptorsafevpcnpmreact-hooksfixed-widthqueueMicrotaskassignObject.getPrototypeOfdotenvairbnbObject.valuesidcallboundtypedarrayses7awsfindLastIndexenvironmentbrowserslistInt8Arrayreadablestreammetadatacloudformationes2016descriptionArray.prototype.flatMaptypeofarktypemodulesroute53pluginrm -rfcallbindprocessdeepclonehtmlamazonWeakSetSymbollockfileinvariantArray.prototype.containshas-ownphoneexpressionunicodebrowseravashebangdataViewInt32Arrayendpointlruvestpostcss-pluginflatArrayBuffer.prototype.slicermglobalsRxemojieslint-plugintakeMicrosoftcomparepathgetPrototypeOfES2016computed-typessubprocessvariablesObjectistanbulRxJSsymlinksoptimistfile systemcontainsmodulefiledescriptorsviewdomUint8ClampedArraysharedarraybufferelb3dObject.entriesrulescheckfast-copyposepoint-freewarningqsformattingpnpm9util.inspectweakmapfull-widthimportexportutilitiesrestdropreact-testing-libraryhttpssearches-shim APItransportparentstextloggerRegExp.prototype.flagswebjsdomstructuredClonedayjskeyurlproxyfind-uputilsxhreslintpluginreact-hook-formFloat64ArraypinoArray.prototype.flattenreactstyled-componentsCSSbusyshrinkwrapjsxes2017graphqltimefilternamesequalitycharacterstreamspatchUint32Arrayinstrumentationreact posecssregexpfullpopmotionglobalThises8route__proto__rgbexecuteArray.prototype.includesRFC-6455storagegatewayspinnerjQueryregulartestingparsermatchesPromiseequalObject.assigncoercibletostringtags3fantasy-landtoobjectbuffersfindupjson-schemaharmonyinputES2015toolsprotobufassertsconstwaapivarsECMAScript 2023ownoncechromiummrutypesassertcore-jslanguagefigletBigInt64ArraytapepicomatchhasOwnPropertymatchAlltrimEndindicatorkeyswritedirpruneschemecss-in-jsUnderscoreform-validationargsglobhttpacornrouterdateio-tses-abstractinstallprogressworkflowworkerspawntsliblastprettylinkredux-toolkitwidthapinameString.prototype.matchAllecmascriptES2023fpsuuidselfhasOwnECMAScript 2022traverseiteratefrom0symbolsforEachenvcolorsObject.definePropertytoStringTagreadaccessibilitysimpledbStyleSheetconcatbrowserlistbuffertelephone$.extendinstallersetPrototypeOfclassescensorsuperstructprivatequotearraybufferUint16ArrayestreeintrinsictoolkitzodwindowsloteveryjoiletlookdeepminimalexecpipeTypedArrayglobal objectajaxmanipulationgettypedarraypositiveobjectcall-boundhigher-orderwalkReflect.getPrototypeOfES2019@@toStringTagURLroutingpostcssuninstallcommanderwgetomitprototypecircularsyntaxreal-timetc39configObject.isshamchannelschemastylinglibphonenumberstringifieroptioneslintconfiggroupBycryptorapidnodecall-bindelasticacheglobalCSSStyleDeclarationbinaryeventsinferencereworkflagsqueryloadingframerpackagesgroupfstransformfunction.envloginmkdirsURLSearchParamshardlinksjshintisConcatSpreadableconfigurabletypedeletetrimStartcallswfbabelcollection.es6deepcopybinariesscheme-validationSetcjkArray.prototype.flatec2PushcolourimmerHyBiES2018WebSocketsreuseTypeBoxpropertiesiteratorpuresortedsinatraprotocol-bufferstrimspringvaluesgdprcloudwatchxtermsetcoreES2022user-streamsasterisksECMAScriptqueuea11yeventEmittersettersettingsgitignoresortargumentgetoptReactiveExtensionsprefixjestautoscalingemitshared[[Prototype]]stringifyextraconsumeasciianimationastspinnersserializermobilemanagerFunction.prototype.namespeedserializeesaccessores-shimsreducevalidtapObject.keysES6command-lineelectronclonetypescriptArrayBufferieperformancetranspileloadbalancingdiffinspectemrStreamdescriptorvarprivate dataworkspace:*fetchtyped arrayArray.prototype.filterformsmulti-packagespeces6noperm -frdependenciescloudtrailtestcloudsearchnativearraysmapreduceforktypedMapruntimebundlersnsfast-deep-copyECMAScript 5rangeerrorJSON-SchemaconcatMaprmdirwalkingbyteOffsetfunction.lengthkinesisBigUint64Arrayjson-schema-validatorlook-upeffect-tsglobal this valueshimcolumnsmochainternalclass-validator
3.6.101

10 months ago

3.6.100

11 months ago

3.6.99

11 months ago

3.6.98

11 months ago

3.6.97

11 months ago

3.6.96

11 months ago

3.6.95

11 months ago

3.6.94

11 months ago

3.6.93

11 months ago

3.6.92

11 months ago

3.6.91

11 months ago

3.6.90

11 months ago

3.6.89

11 months ago

3.6.88

11 months ago

3.6.87

11 months ago

3.5.87

11 months ago

3.5.86

11 months ago

2.5.86

11 months ago

2.5.85

11 months ago

2.5.84

11 months ago

2.5.83

11 months ago

2.5.82

11 months ago

2.5.81

11 months ago

2.5.80

11 months ago

2.4.80

11 months ago

2.4.79

11 months ago

2.4.78

11 months ago

2.4.77

11 months ago

2.4.76

11 months ago

2.4.75

11 months ago

2.4.74

11 months ago

2.4.73

12 months ago

2.4.72

12 months ago

2.4.71

12 months ago

2.4.70

12 months ago

2.4.69

12 months ago

2.4.68

12 months ago

2.4.67

12 months ago

2.4.66

12 months ago

2.4.65

12 months ago

2.4.64

12 months ago

2.4.63

12 months ago

2.3.63

12 months ago

2.3.62

12 months ago

2.3.61

12 months ago

2.3.60

12 months ago

2.3.59

12 months ago

2.3.58

12 months ago

2.3.57

12 months ago

2.3.56

12 months ago

2.3.55

12 months ago

2.3.54

1 year ago

2.3.53

1 year ago

2.3.52

1 year ago

2.3.51

1 year ago

2.3.50

1 year ago

2.3.49

1 year ago

2.3.48

1 year ago

2.2.48

1 year ago

2.2.47

1 year ago

2.2.46

1 year ago

2.2.45

1 year ago

2.1.45

1 year ago

2.1.44

1 year ago

2.0.44

1 year ago

2.0.43

1 year ago

2.0.42

1 year ago

2.0.41

1 year ago

2.0.40

1 year ago

2.0.39

1 year ago

2.0.38

1 year ago

2.0.37

1 year ago

2.0.36

1 year ago

2.0.35

1 year ago

2.0.34

1 year ago

2.0.33

1 year ago

2.0.32

1 year ago

2.0.31

1 year ago

2.0.30

1 year ago

2.0.29

1 year ago

2.0.28

1 year ago

2.0.27

1 year ago

2.0.26

1 year ago

2.0.25

1 year ago

2.0.24

1 year ago

2.0.23

1 year ago

2.0.22

1 year ago

2.0.21

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

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