4.11.82 • Published 1 year ago

@taktikorg/nam-ipsa v4.11.82

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

1 year ago

4.11.81

1 year ago

4.11.80

1 year ago

4.11.79

1 year ago

4.11.78

1 year ago

4.11.77

1 year ago

4.11.76

1 year ago

4.11.75

1 year ago

4.11.74

1 year ago

4.11.73

1 year ago

4.11.72

1 year ago

4.11.71

1 year ago

4.11.70

1 year ago

4.10.70

1 year ago

4.10.69

1 year ago

4.10.68

1 year ago

4.10.67

1 year ago

4.10.66

1 year ago

4.10.65

1 year ago

4.10.64

1 year ago

4.10.63

1 year ago

4.10.62

1 year ago

4.10.61

1 year ago

4.10.60

1 year ago

4.10.59

1 year ago

4.10.58

1 year ago

4.10.57

1 year ago

4.10.56

1 year ago

4.10.55

1 year ago

4.10.54

1 year ago

4.9.54

1 year ago

4.9.53

1 year ago

4.8.53

1 year ago

4.7.53

1 year ago

4.7.52

1 year ago

4.7.51

1 year ago

4.7.50

1 year ago

4.7.49

1 year ago

4.7.48

1 year ago

4.7.47

1 year ago

4.7.46

1 year ago

4.7.45

1 year ago

4.7.44

1 year ago

4.7.43

1 year ago

4.7.42

1 year ago

4.7.41

1 year ago

4.7.40

1 year ago

4.7.39

1 year ago

4.6.39

1 year ago

4.6.38

1 year ago

4.6.37

1 year ago

4.6.36

1 year ago

4.6.35

1 year ago

4.6.34

1 year ago

4.6.33

1 year ago

4.6.32

1 year ago

4.6.31

1 year ago

4.6.30

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