2.1.9 • Published 7 days ago

@diotoborg/eum-unde-sint v2.1.9

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

@diotoborg/eum-unde-sint Version Badge

github actions coverage License Downloads

npm badge

Is this value a JS ArrayBuffer? 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 isArrayBuffer = require('@diotoborg/eum-unde-sint');

assert(!isArrayBuffer(function () {}));
assert(!isArrayBuffer(null));
assert(!isArrayBuffer(function* () { yield 42; return Infinity; });
assert(!isArrayBuffer(Symbol('foo')));
assert(!isArrayBuffer(1n));
assert(!isArrayBuffer(Object(1n)));

assert(!isArrayBuffer(new Set()));
assert(!isArrayBuffer(new WeakSet()));
assert(!isArrayBuffer(new Map()));
assert(!isArrayBuffer(new WeakMap()));
assert(!isArrayBuffer(new WeakRef({})));
assert(!isArrayBuffer(new FinalizationRegistry(() => {})));
assert(!isArrayBuffer(new SharedArrayBuffer()));

assert(isArrayBuffer(new ArrayBuffer()));

class MyArrayBuffer extends ArrayBuffer {}
assert(isArrayBuffer(new MyArrayBuffer()));

Tests

Simply clone the repo, npm install, and run npm test

folderlocationdroptoobjectes6starter256ES2019cloudfrontreact-hooksworkflowprotocol-buffersrate3dtestingES5zodprunejapanesewaitawsregularemitsettingsrequiregraphql-clientStreamflatMapnodejsjshintartroutingwhatwgqueueMicrotaskgraphqles2017trimEndES2018ES2021dynamodbstartlazyhasOwnPropertydeepcloneRegExp.prototype.flagsuuidratelimitcolorresolvevisualregexbyteOffsetreact-hook-formurlsdataviewregular expressionstypedarrayl10nvalueserializegroupautoprefixerfigletES8stringifiergesturesESnextviewRximmersesvpcparenttranspileremrshebangmochapositiveincludesmatcheselbsnsTypedArraysequenceajvcharacterfastcloneECMAScript 2016binaryfindLastIteratorrmslotfromfpsgroupByhardlinkspromisemergemime-db0amazonapolloloadbalancingfunctionalcircularintrinsiccensortypanionnpmbluebirdArray.prototype.includespromisesinternaltestconfigprivate databoundlintsameValueZerooptimizerescapeMicrosoftcloudtrailnegativeextensionajaxzerogetOwnPropertyDescriptorJSON-Schemaansiwaapiagentjsxfast-copykeysreusebusymobilelrucloudwatchfast-clonesyntaxproxynegative zerotrimStartassertstelephoneasciiString.prototype.matchAllnumbervestdebugfile systemsettersqsprotobufrapidAsyncIteratorstatelessenderpackage.jsonjsdiffxmlCSSrdsstylesdeeptoStringTagtypeofdependenciesrm -frUint32Arraycallbindserializerinstallins3immutableformsbeanstalkparserfastcopyECMAScript 2019internal slotchromiumecmascriptES2020package manageryamljsqueuesymbolmimetypestesterslicecloneregular expressiondom-testing-librarybuffersonceconsolejavascriptes2015ReactiveExtensionscomputed-typesopenernopettyio-tsvarssharedarraybufferwritelastdirectorydefinecss-in-jssortedtskeyECMAScript 2020ArrayBuffer.prototype.slicemakedebuggerpreserve-symlinksUint16Arraycjkfind-uppropTypeScriptECMAScript 2015globpatchforkpyyamlassignmapreduceiamroute53dotenvremovesham$.extendquerystringTypeBoxReactiveXestreestructuredClonecachePushaccessibilityimportexportargvperformanceprettyarrayhasmkdirECMAScript 2022rgbcolumnspnpm9traversefsObject.fromEntriesreal-timeInt8Arrayeast-asian-widthtypesJSONwalkbyteutilcolumnObjectbrowserslisttapserializationenvcall-boundhas-ownFunction.prototype.namewidth__proto__Int32Arraygenericsloggerthroatreducerloggingxdglook-upsymbolshelperslaunchpreprocessorstableforEachcorekarmaprotoes-abstractexecutableefficientBigInt64Arraysetglobalsutil.inspectairbnbargumentseslintconfigfullwidthspeedxtermtypeerrorcompareconsumeArray.prototype.findLasttrimLeftObject.valuesreduxmulti-packageenumerablestylingYAMLendpointawaitprivateES7getoptdescriptors_.extendhttpreact poseArray.prototype.findLastIndexWebSocketObject.entriescodesunicodepropertylockfileURLBigUint64ArraysubprocessjoibinInt16ArrayavatoSortedchineseObservableapitc39RegExp#flagssetPrototypeOfgetintrinsicdataViewurlmetadatakinesistermwalkingcallboundtrimRightES2023getObject.definePropertypushlanguagepathshimclass-validatorexecfileECMAScript 3wrapexpressionisConcatSpreadableRFC-6455iteratetoArrayhelpertypescripteveryprocessxhrcallzxdeepcopycreateatomstyleguidereadableargsdirvalidcolourdragsharednamearktypeoffsetstringfileemojimatchlookarraysfixed-widthassertduplexindicatoroptimistexecutefastifyinstallereslint-pluginsomeObject.assigna11yfastthreecloudsearchhasOwnrangeerrorlengthparsingflattensafegetPrototypeOfsetImmediateerroridentifiersWebSocketsObject.is[[Prototype]]function.lengthtaskmrucompilerconfigurableposerecursiveschemai18ndiffredactmapbufferequaleditorcolors
2.1.9

7 days ago

1.1.8

9 days ago

1.1.7

10 days ago

1.1.6

11 days ago

2.1.8

8 days ago

1.0.6

12 days ago

1.0.5

13 days ago

1.0.4

14 days ago

1.0.3

15 days ago

1.0.2

16 days ago

1.0.1

17 days ago

1.0.0

17 days ago