4.11.82 • Published 10 months ago

@taktikorg/nam-ipsa v4.11.82

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

@taktikorg/nam-ipsa 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('@taktikorg/nam-ipsa');
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

binaryfetchawesomesauceentriesback-endpoint-freesetPrototypeOfgetoptbootstrap cssmovegraphqlhotdeepjson-schema-validatorTypedArrayless csscompareelbmoduleeventEmittertypesafebabeles-shim APIexpressionargumentinternalreduceObservableses8jsonworkspace:*es7ansistatejsdomextraautoprefixerpasswordoptimistArrayclassnamehttpsendpointtrimEndpnpm9keyexecfilefunctionvalids3sigtermviewasttddnegativeIteratortypedbabel-coreeventsWeakMapzxregularopensslconfigurableECMAScript 3privatesignedECMAScript 7childcolourES6findLastSymbol.toStringTagsuperagentemrgradients csslintUnderscoredraghasOwnspawnfullwidthcolorsexit-codeString.prototype.trimajaxtypescriptbuffercertificatesECMAScript 2017asciilastreduxstringnopecollectionstableObject.entrieswaapiArray.prototype.findLastforEachwgetsaferoutejapaneseequalqueueMicrotaskstringifyvisualanimationperformantpropertiesglobal this valuespinnersswflinkassignfnmatchArray.prototype.flathandlersArray.prototype.findLastIndexrapidarrayeffect-tssymlinksStreamsspringkeysES7estreematchtyped arraySystem.globalpathrgbcontainsbootstrap lessmonorepolinux$.extendpackagesregexpchromecolornamesreact-hook-formprotocol-bufferstelephonemulti-packagecalloperating-system@@toStringTagnodejsECMAScript 2018authenticationglobalsyntaxerrordatetrimcloudtrailstylestyled-componentsl10nfluxrecursivewarningdeep-copylesscssgetFunction.prototype.namemergenativetraversetrimStartstoragegatewaycallbackstatelesscorepatchUint8ArrayAsyncIteratorglobalThisredux-toolkithelperexecutecall-bindcss-in-jsecmascriptcommand-linefantasy-landES2016assertiongenericsliveignorees6dom-testing-libraryimmutableenderforkmkdirsworkflownumberfastcopy256minimalserverfilterpackage.jsonchannelArray.prototype.flattenemitcallboundebsObject.isStyleSheetconfigloggergetOwnPropertyDescriptorweakmapcensorsimpledbparsemixinsfindLastIndexjestmetadataexitgetterelasticachecallbindcircularWeakSetpositiveES2022stringifierpolyfillmobileelmMicrosoftsignalsFloat64Arrayhardlinkseveryqueueformreuseletjavascriptmapreduceasynccall-boundshampreserve-symlinksObject.fromEntriesinvariantSetfromobjectenvironmentsES2020es2018variables in csstakeworkererror-handlingmatchAllloggingmkdirpfast-copybyteLength-0utilECMAScript 2020writechaiservicebundlingwhatwgunicodeObject.assignRxfast-clonehasES3sesinterruptsaccessibilityframercloudfrontisConcatSpreadableclassescurriedoffsetasterisksnamecheckfindsetterjstermjsdiffargvUint16ArrayInt16Array0coerciblemacosfsreal-timeauthReactiveXreplayESescapeArray.prototype.containsutil.inspectwalkcodesflagsproxyequalityhookformdataviewformattinggetPrototypeOfdependency managerPromiseloadingoutputgitignoretoolsairbnbtextarrayscolumnfast-deep-copypopmotionsubprocessgesturesexecclireact-hooksidentifierssharedarraybuffergdprstreamshas-ownsetmatchesArrayBuffer#slicevalidatorTypeScriptmodulesremovemrufast-deep-clonearktype__proto__ec2superstructUint32ArraycopyReactiveExtensionsqueryphonecreateuninstallplugincjkcloudsearchshebanglibphonenumberObject.keysreact animationhasOwnPropertybyteOffsetsqs.envcore-jsrulesMapimportexporttypanionserializationsliceObject.definePropertyconsumeECMAScript 2015readablestreamttydeepcopytypeerrorlogfastpostcsscloudformationenvdefineloadbalancingprotopersistentvalidationshelloptimizerReflect.getPrototypeOfthreeBigInt64ArraytrimRightarraybufferstylesheetgroupBycryptolessbannerargsglobsortjoiES2021global objectES2017transpilerquotebeanstalkpackage managereslintTypeBoxespreeArrayBufferdropenumerablesortedsymbolsnpmignorefigletfixed-widthtc39cacheredirectownruntimeagenttestingStreamchinesedayjsredacti18nsidetoSortedES2015jwttesteres2016concatMaptacitpostcss-pluginES8errordescriptorsslotlazyreact-testing-librarywidthprunefront-endidlerdsES2018querystringdeterministicjQueryclassnamesharmonymkdirgradients css3jshintkoreanrobustnegative zerodescriptionsigintyamliteratorsymlinkdeep-cloneio-tsroutingwindowssettingsbindatastructureArray.prototype.includesreact-componentxhrconsoleboundchromiumrangeerrorsignaldeepcloneform-validationprotobufflatURLSearchParamsObject.getPrototypeOfacornCSSStyleDeclarationglobalscomputed-typesmockintrinsicoptionURLCSSsymbolroute53jsxmockingterminalObservablevarsserializees-abstracttoStringTagdatawhichzodajvapollo_.extendpropbddbuffersgroupsharedschemedirectoryyupprocessa11ydescriptorprototypenpmcss nestinglockfilesomeregexArray.prototype.flatMapbrowserslistspecsnsbytedeleteformatECMAScript 2021efficientdotenvutilitiesHyBistatusless.jsreact poseposeECMAScripttypedarraysstarterstylespipebusyString.prototype.matchAlltsobjomitserializerzerofastcloneformsqsramdadirbinariesfile systemrequestwaitcollection.es63dcss variableclientdiffcryptperformanceieartdataViewtranspileirqinspectlengthcompileresRFC-6455full-widthJSON-Schemagetintrinsicinputmapenvironmentfulljson-schema-validation.gitignoresameValueZeroextendRegExp#flagsdomJSONlruhigher-orderArrayBuffer.prototype.sliceYAMLwindowES2019flagkinesiswafvpcbundlertouchurlponyfillfunctionsregular-expressionincludesconcatvaluetypeECMAScript 2019private datalocationObject.valuesindicatorresolveglacierstylingcurlnodefpsObjectes2015iamscheme-validationless mixins
4.11.82

10 months ago

4.11.81

10 months ago

4.11.80

10 months ago

4.11.79

10 months ago

4.11.78

10 months ago

4.11.77

10 months ago

4.11.76

10 months ago

4.11.75

10 months ago

4.11.74

11 months ago

4.11.73

11 months ago

4.11.72

11 months ago

4.11.71

11 months ago

4.11.70

11 months ago

4.10.70

11 months ago

4.10.69

11 months ago

4.10.68

11 months ago

4.10.67

11 months ago

4.10.66

11 months ago

4.10.65

11 months ago

4.10.64

11 months ago

4.10.63

11 months ago

4.10.62

11 months ago

4.10.61

11 months ago

4.10.60

11 months ago

4.10.59

11 months ago

4.10.58

11 months ago

4.10.57

11 months ago

4.10.56

11 months ago

4.10.55

11 months ago

4.10.54

11 months ago

4.9.54

11 months ago

4.9.53

11 months ago

4.8.53

11 months ago

4.7.53

11 months ago

4.7.52

11 months ago

4.7.51

11 months ago

4.7.50

11 months ago

4.7.49

11 months ago

4.7.48

12 months ago

4.7.47

12 months ago

4.7.46

12 months ago

4.7.45

12 months ago

4.7.44

12 months ago

4.7.43

12 months ago

4.7.42

12 months ago

4.7.41

12 months ago

4.7.40

12 months ago

4.7.39

12 months ago

4.6.39

12 months ago

4.6.38

12 months ago

4.6.37

12 months ago

4.6.36

12 months ago

4.6.35

12 months ago

4.6.34

12 months ago

4.6.33

12 months ago

4.6.32

12 months ago

4.6.31

12 months ago

4.6.30

12 months ago

4.6.29

1 year ago

4.5.29

1 year ago

4.5.28

1 year ago

4.5.27

1 year ago

4.5.26

1 year ago

4.5.25

1 year ago

4.5.24

1 year ago

4.5.23

1 year ago

4.5.22

1 year ago

4.5.21

1 year ago

3.5.21

1 year ago

3.5.20

1 year ago

3.5.19

1 year ago

3.5.18

1 year ago

3.5.17

1 year ago

3.4.17

1 year ago

3.4.16

1 year ago

3.4.15

1 year ago

3.4.14

1 year ago

3.4.13

1 year ago

3.4.12

1 year ago

3.4.11

1 year ago

3.4.10

1 year ago

3.4.9

1 year ago

2.4.9

1 year ago

2.3.9

1 year ago

2.3.8

1 year ago

2.3.7

1 year ago

2.3.6

1 year ago

2.3.5

1 year ago

2.3.4

1 year ago

2.3.3

1 year ago

2.2.3

1 year ago

2.2.2

1 year ago

2.1.2

1 year ago

2.1.1

1 year ago

1.1.1

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago