3.13.92 • Published 1 year ago

@swenkerorg/perferendis-hic v3.13.92

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

@swenkerorg/perferendis-hic 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('@swenkerorg/perferendis-hic');

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

quotetermes7omitES6class-validatorregular-expressionrmdirdom-testing-libraryrgbidentifiersreact-hooksfpses6reversedpoint-freeuser-streamsfast-copyflagflattenserializehttpletenderfpwriteregexintrinsicsetcloudsearchfullwidthcore-jspuretypeerrorschemenopeReflect.getPrototypeOf[[Prototype]]equalityparentscheme-validationcompareminimalreactpackage managerFloat32ArraydeterministicdebuggerFunction.prototype.namemkdirpbuffersparsejson-schemanpmserializerlanguageapollorandomdeepcopysnsES2021ES7inspecttrimLeftreducerutilityObservableanimationstyleguideinferenceSystem.globalECMAScript 3Mapreusehooksprettyxhres-shimsinstall.envprotobufInt16Arrayflatdeep-clonekoreanparsereslintconfigtacittoolkitatomkarmatypedfastcopyhas-ownbinaryRFC-6455rangeerrorsyntaxerrorjsdiffruleslruutilecmascriptES3javascriptlibphonenumbertc39redux-toolkitworkspace:*japanesehashviewpositiveharmonycloudfrontunicodediffpnpm9TypedArraywalkcolorramdainternalpackageperformantglobalpatchtransportsetterswfrequestpyyamloptimistbusyglacierStyleSheetloggerECMAScript 2021eslint-pluginTypeBoxterminalloggingfastfunction.lengthexecbundlerrssconsoleavagetmrumochanegative zerodatavalidationidcloudwatchsortedES2016typedarrayexpressionfindLastIndexreverseamazonchairapidownfiltertoReversedbabel-coreES5configurablegesturesvaluesvariablestypecircularArray.prototype.includess3ansijsdomasterisksstyled-componentstouchmomenthookformtypescriptinstallerfigletwebpostcsssource mappostcss-pluginsetImmediatefromutilitieschrometraverseentriesreact-testing-library256reduxMicrosoftrmpruneinnamebindpolyfillargvtake6to5cliagentassertjson-schema-validatorlogpromiseECMAScript 2023environmenttypesafeWeakMapcode pointssameValueZerowgetinternal slotloadingcheckstylesdateastregular expressionreadablestreamobjectrestreduceconst_.extendObject.getPrototypeOfkinesisassertionArray.prototype.containsES8higher-orderES2017subprocesslintsharedarraybufferflagscloudformationfullisaccessorroutingArray.prototype.flatMapAsyncIteratorinvariantlookdefinekeymkdircompilerTypeScripttapsymbolsieexpressuuidbrowserslistshrinkwrapescall-bindguidUint8Arraytyped arrayelbemitdeleteiteratechinesewaapiprototypetrimStarttesterformatdataviewPushstringifierformdirectoryextragitignoreroute53slicegetintrinsicidleYAMLtestingcryptoclassnameartkeysutil.inspectjsfindupES2020sortfast-deep-copymetadatahelperstypaniondescriptorcontainsBigInt64Arraycolumnsspeedespreeautoscalingmobilepushl10nvalidatormapjQuerygettermapreduceCSSStyleDeclarationawsstylinges2015iamoptimizerestreejasminecallnumberbeanstalkUint8ClampedArraycssbrowseruptostringtagcoreawesomesaucequeueMicrotaskpopmotionasciiprivateapiquerystringoffseta11yreact-hook-formcolorscloudtrailtslibeslintistanbulUnderscoresinatrafind-uphasOwnPropertyphonevestgetOwnPropertyDescriptorArray.prototype.flattenroutergenericsObject.istypedarraysfantasy-landdataViewelasticachevisualignoreRxfull-widthspecacorntoSortedUint32ArraytranspilecensormanagerObjectvalueclassesSymbol.toStringTages2018look-upfunctionschildECMAScript 7SetnodejslocationautoprefixerproxyArrayBuffermanipulationString.prototype.matchAllstarterArrayBuffer#slicereworkarraysdomdragnodepackageszodrm -rfsomeaccessibilityreadxtermyamlfeedutilsECMAScriptnativefile systemcreategdpr
3.13.92

1 year ago

3.12.92

1 year ago

3.12.91

1 year ago

3.12.90

1 year ago

3.12.89

1 year ago

3.11.89

1 year ago

3.11.88

1 year ago

3.11.87

1 year ago

3.11.86

1 year ago

3.11.85

1 year ago

3.11.84

1 year ago

3.10.84

1 year ago

3.10.83

1 year ago

3.10.82

1 year ago

3.9.82

1 year ago

3.9.81

1 year ago

3.9.80

1 year ago

3.9.79

1 year ago

3.9.78

1 year ago

3.9.77

1 year ago

3.9.76

1 year ago

3.9.75

1 year ago

2.9.75

1 year ago

2.9.74

1 year ago

2.8.74

1 year ago

2.8.73

1 year ago

2.7.73

1 year ago

2.7.72

1 year ago

2.7.71

1 year ago

2.7.70

1 year ago

2.7.69

1 year ago

2.7.68

1 year ago

2.7.67

1 year ago

2.7.66

1 year ago

2.6.66

1 year ago

2.6.65

1 year ago

2.6.64

1 year ago

2.5.64

1 year ago

2.5.63

1 year ago

2.5.62

1 year ago

2.5.61

1 year ago

2.5.60

1 year ago

2.5.59

1 year ago

2.5.58

1 year ago

2.4.58

1 year ago

2.4.57

1 year ago

2.4.56

1 year ago

2.3.56

1 year ago

2.3.55

1 year ago

2.3.54

1 year ago

2.3.53

1 year ago

2.3.52

1 year ago

1.3.52

1 year ago

1.3.51

1 year ago

1.3.50

1 year ago

1.3.49

1 year ago

1.3.48

1 year ago

1.2.48

1 year ago

1.2.47

1 year ago

1.2.46

1 year ago

1.2.45

1 year ago

1.2.44

1 year ago

1.2.43

1 year ago

1.2.42

1 year 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.2.36

1 year ago

1.2.35

1 year ago

1.2.34

1 year ago

1.2.33

1 year ago

1.2.32

1 year ago

1.2.31

1 year ago

1.2.30

1 year ago

1.2.29

1 year ago

1.2.28

1 year ago

1.2.27

1 year ago

1.2.26

1 year ago

1.1.26

1 year ago

1.1.25

1 year ago

1.1.24

1 year ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.20

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

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.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