1.4.81 • Published 11 months ago

@diotoborg/quo-neque v1.4.81

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

@diotoborg/quo-neque 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/quo-neque');

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

loadbalancinglanguagepathglobal this valuespringrequireconstexecutebuffertslibiteratorequalwalkObject.getPrototypeOfstringifywaapiasserts_.extendjsxapolloajvmacoslesscsssqsgesturescssharmonyloadingECMAScriptformsgradients css3eventDispatcherwgetisConcatSpreadableschemasettergraphqlArray.prototype.filterelasticacheredactcolumnsclientAsyncIteratorextracore-jsquerygroupByreadpropjson-schema-validatorpipezodmockes2018fluxHyBireadablefindLastregular-expressionnegativecopyautoprefixerregular expressionemitwritableInt16ArrayStyleSheetglobfunction.lengthownamazonefficientslotbuffersUint8ArraymobilefunctionsjwtObject.keysjsonschemaboundflagString.prototype.trimdefineawssettingscss nestingtrimStartes7dependency managerreact animationtrimLeftcirculario-tssignalscommand-lineextendnumbercomputed-typesdataViewECMAScript 2017bytepostcssthreesameValueZeroimmutable[[Prototype]]transpileendpointES3bundlerformgetintrinsicregexpvalidatorsortedarraysless cssStreamsurlserializationdescriptorcomparemetadataoffseti18nmake dirieInt32Arrayprotobufprotocol-bufferscheckasciilinthandlersfile systemRegExp#flagsdifftypesaferegularpureObject.definePropertyes2015rdsessymlinkcss-in-jslocationSymbol.toStringTag__proto__unicodetoobjectreducetranspilercodespreprocessorlesscommandcloudwatchframerES7stylesheetES2020l10nchinesecompile lessstringifierjsoncollectioneslintconfigObject.entriesconsolereact-testing-libraryquoteequalityinferenceyamlES2021mixinsECMAScript 3JSON-Schemasidestreamnativepromisemulti-packagedeeprulesECMAScript 2018superstructnegative zerowait3dxhrfullwidthECMAScript 2015makesuperagentArray.prototype.flatRxJStoArraystyleguidecall-bounda11ychannelclassnameWeakMapuser-streamseffect-tsURLtouchURLSearchParamscolumnxtermfsiterationvaluescss variableECMAScript 6ES5momentarraylibphonenumberuploaddeletereducerchromiumcloudformationstructuredClonenested cssminimalhttpFloat64ArraybindpredictableFunction.prototype.nameback-endsymbolsdragtraversefront-endfunctionES8createprocessclass-validator
1.4.81

11 months ago

1.4.80

11 months ago

1.4.79

11 months ago

1.3.79

11 months ago

1.3.78

11 months ago

1.3.77

11 months ago

1.3.76

11 months ago

1.3.75

11 months ago

1.3.74

11 months ago

1.3.73

11 months ago

1.3.72

11 months ago

1.3.71

11 months ago

1.3.70

11 months ago

1.3.69

11 months ago

1.3.68

11 months ago

1.3.67

11 months ago

1.3.66

11 months ago

1.3.65

11 months ago

1.3.64

11 months ago

1.3.63

11 months ago

1.3.62

11 months ago

1.3.61

11 months ago

1.3.60

12 months ago

1.3.59

12 months ago

1.3.58

12 months ago

1.3.57

12 months ago

1.3.56

12 months ago

1.3.55

12 months ago

1.3.54

12 months ago

1.3.53

12 months ago

1.3.52

12 months ago

1.3.51

12 months ago

1.3.50

12 months ago

1.3.49

12 months ago

1.3.48

12 months ago

1.2.48

12 months ago

1.2.47

12 months ago

1.2.46

12 months ago

1.2.45

12 months ago

1.2.44

12 months ago

1.2.43

12 months ago

1.2.42

12 months ago

1.2.41

1 year ago

1.2.40

1 year ago

1.2.39

1 year ago

1.2.38

1 year ago

1.2.37

1 year ago

1.1.37

1 year ago

1.1.36

1 year ago

1.1.35

1 year ago

1.1.34

1 year ago

1.1.33

1 year ago

1.1.32

1 year ago

1.1.31

1 year ago

1.0.31

1 year ago

1.0.30

1 year ago

1.0.29

1 year ago

1.0.28

1 year ago

1.0.27

1 year ago

1.0.26

1 year ago

1.0.25

1 year ago

1.0.24

1 year ago

1.0.23

1 year ago

1.0.22

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

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