3.13.92 • Published 10 months ago

@swenkerorg/perferendis-hic v3.13.92

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months 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

10 months ago

3.12.92

10 months ago

3.12.91

10 months ago

3.12.90

10 months ago

3.12.89

10 months ago

3.11.89

10 months ago

3.11.88

11 months ago

3.11.87

11 months ago

3.11.86

11 months ago

3.11.85

11 months ago

3.11.84

11 months ago

3.10.84

11 months ago

3.10.83

11 months ago

3.10.82

11 months ago

3.9.82

11 months ago

3.9.81

11 months ago

3.9.80

11 months ago

3.9.79

11 months ago

3.9.78

11 months ago

3.9.77

11 months ago

3.9.76

11 months ago

3.9.75

11 months ago

2.9.75

11 months ago

2.9.74

11 months ago

2.8.74

11 months ago

2.8.73

11 months ago

2.7.73

11 months ago

2.7.72

11 months ago

2.7.71

11 months ago

2.7.70

11 months ago

2.7.69

11 months ago

2.7.68

11 months ago

2.7.67

11 months ago

2.7.66

11 months ago

2.6.66

11 months ago

2.6.65

11 months ago

2.6.64

12 months ago

2.5.64

12 months ago

2.5.63

12 months ago

2.5.62

12 months ago

2.5.61

12 months ago

2.5.60

12 months ago

2.5.59

12 months ago

2.5.58

12 months ago

2.4.58

12 months ago

2.4.57

12 months ago

2.4.56

12 months ago

2.3.56

12 months ago

2.3.55

12 months ago

2.3.54

12 months ago

2.3.53

12 months ago

2.3.52

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

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