6.9.131 • Published 11 months ago

@ellentorg/vel-ipsa-nemo v6.9.131

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

@ellentorg/vel-ipsa-nemo Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

Is this value a JS Typed Array? This module works cross-realm/iframe, does not depend on instanceof or mutable properties, and despite ES6 Symbol.toStringTag.

Example

var isTypedArray = require('@ellentorg/vel-ipsa-nemo');
var assert = require('assert');

assert.equal(false, isTypedArray(undefined));
assert.equal(false, isTypedArray(null));
assert.equal(false, isTypedArray(false));
assert.equal(false, isTypedArray(true));
assert.equal(false, isTypedArray([]));
assert.equal(false, isTypedArray({}));
assert.equal(false, isTypedArray(/a/g));
assert.equal(false, isTypedArray(new RegExp('a', 'g')));
assert.equal(false, isTypedArray(new Date()));
assert.equal(false, isTypedArray(42));
assert.equal(false, isTypedArray(NaN));
assert.equal(false, isTypedArray(Infinity));
assert.equal(false, isTypedArray(new Number(42)));
assert.equal(false, isTypedArray('foo'));
assert.equal(false, isTypedArray(Object('foo')));
assert.equal(false, isTypedArray(function () {}));
assert.equal(false, isTypedArray(function* () {}));
assert.equal(false, isTypedArray(x => x * x));
assert.equal(false, isTypedArray([]));

assert.ok(isTypedArray(new Int8Array()));
assert.ok(isTypedArray(new Uint8Array()));
assert.ok(isTypedArray(new Uint8ClampedArray()));
assert.ok(isTypedArray(new Int16Array()));
assert.ok(isTypedArray(new Uint16Array()));
assert.ok(isTypedArray(new Int32Array()));
assert.ok(isTypedArray(new Uint32Array()));
assert.ok(isTypedArray(new Float32Array()));
assert.ok(isTypedArray(new Float64Array()));
assert.ok(isTypedArray(new BigInt64Array()));
assert.ok(isTypedArray(new BigUint64Array()));

Tests

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

schemasigtermtesttoolsdeepcloneviewcjkloggerlintconnectstyleforEachexpressionpropertystreams2lengthcacheresolveconsumecompilerregular expressionsesnodetoSortedTypedArrayhigher-orderdescriptorsMicrosoftRegExp#flagsmergetypanionpredictablequerystringtaskcreatesqscode pointsmonorepoclassesflagsdateiterationxtermequalityerror-handlingcloudsearchinvariantcallbindmoveautoscalingsomeObservablevisualjsonpathECMAScript 2016functionless.jstapetrimLeftWebSocketsnamesflatworkspace:*Reflect.getPrototypeOftapsettingssesxhrgradients csschannelcodesemitAsyncIterator_.extendserializerstyled-componentsreact-testing-librarydescriptorrm -rfgdprrmdirttyconsoleentriesbreakroutingyamlformattingtraverseconcurrencyhothasOwnPropertyInt8ArrayjavascriptoptimistomitownfullwidthreplayoncethrottleenvspeedecmascriptfilterReactiveExtensions.envfluxvariablesString.prototype.matchAllcurltestinglookarrayreactfunctionsendpointnegative zerotypescriptes-shimspasswordhttpsamazonstatusRxcompile lessphoneECMAScript 2020RFC-6455sameValueZerowidthsetURLSearchParamsCSSStyleDeclarationcloudtrailhasshrinkwrapargumentArrayBuffer.prototype.slicetypedarraysconfigasciirouterrobustRxJSserialize__proto__dom-testing-librarypushtoobjectsortedpackage managerworkflowguidperformanceincludesfixed-widthformstreamsutilArray.prototype.flatdeep-clonefetchprettynumberreusevalidatecryptocontainsdeep-copyquoteESnextlesswraptrimES2015mimeenumerableString.prototype.trimUnderscorepatchdependency managertermwaitefficientsnscharacternpmintrinsicES2016colorsprototypebootstrap cssreaddeepcopytypeofhelperseslintpluginsetImmediatereduxfindlimitcommandervaluesECMAScript 7inferencedayjsparentsprogressrequireIteratorregextouchbusyjoiclifast-copysymbolselectrona11yproxyTypeBoxassertionautoprefixerlistenersObject.getPrototypeOftimedataviewmodulescharacterscssgetOwnPropertyDescriptordefinePropertyjasminetsnodejswatchassertsdeleteopenES2017mkdirsymboljsxwalkingdependencieswordwraparraybuffer256sigintlrugetintrinsicprocessescapeRegExp.prototype.flags[[Prototype]]terminalcollection.es6interruptsrandompicomatchbyteArray.prototype.findLastpreserve-symlinksarktypecheckargparseESFloat64ArrayhashdirloadbalancingstructuredClonelimitedbundlingcolourrecursiveSetwriteextensionObject.fromEntriesl10nmacostslibvestchaimrucryptmulti-packagefull-widthReactiveXparserartObjectio-ts@@toStringTagrestfulmiddlewarematchesstringifyfindLastIndexexpressmimetypesdataViewlibphonenumberstdlibES8workerFloat32ArrayendertrimRightshebangconcatdescriptionStyleSheetlazyebsmapcolumnsjsdiffdatabddprunesequencevpcjsdomstringifiermapreduceObject.valuesECMAScript 5valuelinuxTypeScriptlanguagetoArrayhasOwnjQueryObject.entriesInt32ArrayredactbyteLengthstringsides3httpoptionweaksetregular expressiongradients css3circularencryptiondotenvsetterYAMLtrimEndeslintconfiges6form-validationunicodecompareArrayBuffer#sliceutilityreact-hook-formargvgenericsJSON-SchemaconfigurablearraysbundlercolorkinesisdefineimmutableclassnamesrdsagentminimaltoolkitArrayBufferaccessorcallboundequalgetPrototypeOfsimpledbbootstrap lessStreamBigUint64Arraytypedarrayes7tddrgbserializationglaciershamnopeinternalbindidleECMAScript 2017windowsbcryptimportaccessibilitybeanstalkspinnersspecstartercallthroatObject.isec2bluebirdajaxes2017ES2018importexportqueueMicrotasklesscsspyyamleventDispatcherprotobufparsereact-hookssetPrototypeOfbuffersrm -frES2020packageschromepipeArray.prototype.findLastIndexpositivedropfinduputil.inspecttelephonecommand-linepreprocessorES2019getterhandlersdeterministicprotocol-buffersawaitwebmkdirskoreanwgetredux-toolkitargsrateregularwafeventEmitterbrowserfullhooksobjecttc39StreamsmobileObject.keysreadablestreamisschemecss nestingsharedpromisesdatastructuretextcloneisConcatSpreadabletrimStartenvironmentsignalsbrowserlistArray.prototype.flatMapbounddebuggerswfwatchFileextendUint8ClampedArray$.extendrequestECMAScript 2015package.jsonfscoerciblevalidationURLwhichcall-bindairbnbinputwatchingbyteOffsetapilockfileflatMapfastcloneparentcopypackagepathframeworkfindLastArray.prototype.flatteninstallersuperagentmomentlastqsfind-upprotoWebSocketremovewarningfolderbrowserslistdiffPushtypeerrortypedcss lessrangeerrorqueueauthmodulewalkawesomesauceelbqueryregexprmi18neventsECMAScript 3toStringTagInt16ArrayArrayprefixfseventscollectionbannervariables in cssprivate dataperformantexecstylinggetoptstyleguideponyfilloutputbatchmime-dbsyntaxerrordomoptimizerparsinglook-uphas-ownchromiumECMAScript 2019typesafetypespropWeakMapArray.prototype.filterwatchertyped arrayes5es-abstractObservablessortrouteCSSjapaneseextragroupBygroupcss-in-jsweakmapreducees2016uuidratelimitdynamodbuninstallpostcsses8idmake dirpluginglobjwtmochakarmasharedarraybufferfastifyclassnamejsonfile systemloggingSymbol.toStringTag-0corscall-boundvalideast-asian-widthwritableArray.prototype.includespolyfillgetECMAScript 6jsfigletcloudformationbufferstoragegatewayspinnernameestreeupoperating-systemECMAScript 2018statelesslogES6Uint32ArraystatezerosuperstructBigInt64Arrayansicss variableurltypecorenativeajvfast-deep-copyfast-clonekeyrapidECMAScript 2021ES5assignutilitieseslintcloudfrontimmeres2018syntaxsearchflagSymboldeeppropertiesindicatorObject.assignawsfastirqwordbreakfpsstableruntimeerrorflattenmakeinloadingshellemrclass-validatorhardlinksstreamFunction.prototype.nameinternal slotelasticachemetadataexitJSONcore-jsroute53hookformassertUint16ArraywhatwgfromemojioffsetMapappcensor
6.8.124

11 months ago

6.8.123

11 months ago

6.8.126

11 months ago

6.8.125

11 months ago

6.8.120

11 months ago

6.8.122

11 months ago

6.8.121

11 months ago

4.7.90

1 year ago

6.8.128

11 months ago

6.8.127

11 months ago

1.5.70

1 year ago

6.8.129

11 months ago

6.8.130

11 months ago

4.7.81

1 year ago

4.7.82

1 year ago

4.7.80

1 year ago

4.7.85

1 year ago

4.7.86

1 year ago

4.7.83

1 year ago

4.7.84

1 year ago

4.7.89

1 year ago

4.7.87

1 year ago

4.7.88

1 year ago

2.7.76

1 year ago

6.8.102

12 months ago

6.8.101

12 months ago

6.8.104

12 months ago

6.8.103

12 months ago

6.8.100

12 months ago

6.8.109

12 months ago

6.8.106

12 months ago

6.8.105

12 months ago

6.8.108

12 months ago

6.8.107

12 months ago

1.5.52

1 year ago

1.5.51

1 year ago

1.5.54

1 year ago

1.5.53

1 year ago

1.5.56

1 year ago

1.5.55

1 year ago

1.5.58

1 year ago

1.5.57

1 year ago

1.5.59

1 year ago

6.8.113

11 months ago

6.8.112

11 months ago

1.1.19

1 year ago

6.8.115

11 months ago

2.5.70

1 year ago

6.8.114

11 months ago

6.8.111

11 months ago

6.8.110

12 months ago

6.8.117

11 months ago

6.8.116

11 months ago

6.8.119

11 months ago

6.8.118

11 months ago

1.5.61

1 year ago

1.5.60

1 year ago

1.5.63

1 year ago

1.5.62

1 year ago

1.5.65

1 year ago

1.5.64

1 year ago

1.5.67

1 year ago

1.5.66

1 year ago

1.5.69

1 year ago

1.1.23

1 year ago

6.8.99

12 months ago

1.5.68

1 year ago

1.1.22

1 year ago

6.8.98

12 months ago

1.1.21

1 year ago

6.8.97

12 months ago

1.1.20

1 year ago

6.8.96

12 months ago

6.8.95

12 months ago

6.8.94

12 months ago

1.3.48

1 year ago

6.8.93

12 months ago

1.1.24

1 year ago

3.7.79

1 year ago

3.7.77

1 year ago

3.7.78

1 year ago

3.7.76

1 year ago

1.2.41

1 year ago

1.2.42

1 year ago

1.2.40

1 year ago

1.2.45

1 year ago

1.2.46

1 year ago

1.2.43

1 year ago

1.2.44

1 year ago

1.2.47

1 year ago

1.2.48

1 year ago

5.7.91

1 year ago

5.7.90

1 year ago

2.6.70

1 year ago

2.6.71

1 year ago

2.6.72

1 year ago

6.7.92

12 months ago

6.7.93

12 months ago

4.7.79

1 year ago

6.9.131

11 months ago

6.9.130

11 months ago

1.2.24

1 year ago

1.4.48

1 year ago

2.6.73

1 year ago

1.2.27

1 year ago

2.6.74

1 year ago

1.4.49

1 year ago

1.2.28

1 year ago

2.6.75

1 year ago

1.2.25

1 year ago

6.7.91

1 year ago

2.6.76

1 year ago

1.2.26

1 year ago

1.2.29

1 year ago

1.4.51

1 year ago

1.4.50

1 year ago

1.2.30

1 year ago

1.2.31

1 year ago

1.2.34

1 year ago

1.2.35

1 year ago

1.2.32

1 year ago

1.2.33

1 year ago

1.2.38

1 year ago

1.2.39

1 year ago

1.2.36

1 year ago

1.2.37

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