2.9.92 • Published 11 months ago

@dramaorg/cum-praesentium-quod v2.9.92

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

@dramaorg/cum-praesentium-quod 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('@dramaorg/cum-praesentium-quod');
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

picomatchtrimEndoutputtakeworkerES2022someObservablesrm -frBigInt64ArrayproxyclassnamescollectiontrimLeftemrkarmacore-jsReactiveXECMAScript 2021visualredacttrimchineserdspredictableequalcorees6lazyES2020throatStreamsbrowserlistmake dirserializeyamlsyntaxerrorhasOwnPropertyObject.entriesstringdescriptorwalkIteratorcolumnsterminaljapaneseregularencryptionESnextestreeslicefastifylengthSetasciiexecendpointimportsinatrafilterruntimetypeerrorstylesschemawritablebannerargumentInt32Arrayaccessorflagtypesafecss-in-jscallbackstylesheetmatchglacierrfc4122offsetECMAScript 3telephoneexitoptimiststyleguidemetadatanativefast-cloneArray.prototype.flattenquotecompilerbcryptcjkbootstrap lessobjectrestfulclipropertiesformatratelimitcolourchannelmonorepoSymbolvariables in cssfseventsES2018jestES2016stabletypanionerror-handling[[Prototype]]bundlinghelpersreplaytypeofsetPrototypeOftypeddayjsdependency managerforEachwgetreact-hook-formes5ponyfillsigintgetoptrgb__proto__entrieswordwrapsigtermloadbalancinglrudeepclonespinnerwatchpromisesfastroutinginvariantansiregexpqsexit-codeECMAScript 2019jasminehttpsfromstreamsvalidationassertionUint32ArrayrapidcolumnurlObject.definePropertybuffersArray.prototype.filtergradients css3linuxtypeextensionnametesterduplexastRFC-6455loadingformlistenerswafprototypeoptimizerlesswordbreakesECMAScript 7chrometestingpolyfillconsumejsdiffdefinePropertyemitparsingless csscss variableES6arktypecolorsignalserializerlanguagewhichstringifierflagsprettyscheme-validationpostcss-pluginchromiumframeworkhascss lessratecode pointselasticacheString.prototype.matchAllslotgradients cssWebSocketsdatasharedarraybufferbytefluxtoArrayless.jscryptobatchreducersequencemrufindupawesomesauceECMAScript 2020classnameweakmapES2017connectsetterapirequirefigleteslintpluginhardlinksjsonpathmomentbufferwindowsindicatorcacheerrorUint8ClampedArraydeepdefinesymbolsguidec2arraysreadableES2023Array.prototype.findLastprogresscheckebsuuidES2015form-validationhasOwnES2021getgetOwnPropertyDescriptorcloudsearchRegExp#flagsopenautoscalinghooksphonestreamcallbindArray.prototype.includesidtouchreact-hookslintiscomputed-typesprocesslimitedeast-asian-widthtypedarrayslinkredux-toolkitstoragegatewaynegative zerooptionsymlinkmapmodulesbrowserslistInt8Arraymulti-packageRxJSUint8ArraytextrmlastarrayECMAScript 2018sidedatespecdataViewURLfsCSSStyleDeclarationObject.valuescorsextendECMAScript 2016statelessdeepcopysymboltoSortedworkspace:*toolkitwalking$.extendsestc39eslintconfigawsstreams2inputFloat32ArraytermObject.assignhigher-orderperformancejsdomfpsunicodedropargparseexpressstdlibtestxtermenvironmentdeterministiccloudtrailsafecloudfrontreact-testing-libraryArrayBuffer.prototype.slicebootstrap cssfullmatchesfastcopysymlinksmakegdprasyncloggerSymbol.toStringTagcodesArray.prototype.flatgroupByObject.isbusynodejsremoveWeakSetimmertimebyteLengthObservablereduceawaitcloudwatchbundlerfetchelbairbnbreadablestreamprivate datarestappinstaller-0stateES7ajaxisConcatSpreadableparsereuseprotocol-buffersuninstalljsonpackage.jsonObject.fromEntriesschemebyteOffsetzods3trimRightupnodejwtjoidiffJSONStyleSheetmixinsargvUint16Arraydirectoryfile systemmapreducetaskshammacos.envresolvetrimStartbeanstalkhotconsoleES5readclonedependenciestypesintrinsicirq0hookformHyBicommandernpmavacontainsjstyped arrayagentTypedArrayReflect.getPrototypeOfformsclassesobjes2016configTypeScript@@toStringTagURLSearchParamspromiseminimalnamessetImmediatecloudformationviewdebugtapsharedcharacterslook-upweakseteventsoperating-systemautoprefixervariablesformattinges7curlFloat64Arrayescapecryptdeep-copypathrangeerrorcircularemojisameValueZeropatchmkdirpartcoercibleregular expressionimportexportwatcherdom-testing-librarysnsES2019JSON-SchemaauthenticationECMAScript 6es2018parserquerydatastructurechaimobilepushtoobjectwatchingfindObject.getPrototypeOfaccessibilitywaitinBigUint64ArrayArray.prototype.containsmkdirenvUnderscorefindLastIndex_.extendequalitypackage managerwidthxhrassertsdebuggerpluginshellbluebirdincludesArrayBufferconcurrencyroutefindLasttoStringTagconfigurablesignalsreal-timesyntaxlimitrequestsqsstylepnpm9String.prototype.trimmkdirswebjavascripti18nreduxnopePromisecsses8fastclonesearchmergeextrafast-copytddhandlersenderpreprocessorstarterutilitiesdescriptorstraverseCSSl10ncompile lessiammiddlewarepropertysetstringifystylinginferenceMicrosoftsuperagentnumberquerystringkeyownyuppropnegativethrottlecommandeventDispatcherutilityWebSocketless compilerperformantspeedidleprunekinesistoolsStreamdotenvkoreanprotoES8deep-cloneFunction.prototype.namedatavieweventEmitterbindttyrmdircolorsworkflowloggingamazonparentsReactiveExtensionspostcssshrinkwrapESclass-validatoreslint-pluginglobauthfunctionArrayes-shim APIgetintrinsicPushgroupcallboundpackagevalidreactYAMLmimeObjectinternalgenericswhatwgcall-boundfunctionsdescriptionvestflatfixed-widthqueueshimcompareflatMaphttptostringtagsimpledbutil.inspectregexio-tsargsRxjsxstatusObject.keysTypeBoxrandomlinewrapenumerablemovelesscssdynamodbInt16ArrayefficienttypedarrayArrayBuffer#sliceeverypackagesECMAScript 2022
@dramaorg/aliquam-quas@dramaorg/amet-doloremque@dramaorg/architecto-hic-odit@dramaorg/architecto-quo@dramaorg/asperiores-eveniet-dolores@dramaorg/consectetur-harum-sit@dramaorg/consequatur-dolor@dramaorg/consequuntur-sapiente@dramaorg/corporis-animi@dramaorg/consequatur-iusto@dramaorg/deleniti-minima-corrupti@dramaorg/expedita-quo@dramaorg/explicabo-quo@dramaorg/facere-rerum@dramaorg/fuga-cumque@dramaorg/fuga-vel-natus@dramaorg/harum-in-quibusdam@dramaorg/hic-aliquid-eligendi@dramaorg/hic-odio@dramaorg/id-voluptatum@dramaorg/illo-aperiam@dramaorg/ducimus-similique@dramaorg/eaque-voluptates-soluta@dramaorg/eius-corporis@dramaorg/enim-delectus@dramaorg/enim-fugit-quis@dramaorg/eos-dicta@dramaorg/esse-eius@dramaorg/est-hic-impedit@dramaorg/est-ab@dramaorg/est-vel-libero@dramaorg/et-mollitia@dramaorg/eveniet-id@dramaorg/ex-et-illo@dramaorg/excepturi-consectetur-nisi@dramaorg/exercitationem-eius@dramaorg/excepturi-placeat@dramaorg/adipisci-reprehenderit-distinctio@dramaorg/delectus-pariatur@dramaorg/delectus-libero-quam@dramaorg/facere-dolore-fugit@dramaorg/facere-deserunt-repellendus@dramaorg/facilis-maiores@dramaorg/facilis-quod@dramaorg/fuga-veritatis-non@dramaorg/fugiat-ipsum@dramaorg/harum-cumque@dramaorg/fugit-reprehenderit-dignissimos@dramaorg/fugiat-laudantium@dramaorg/id-praesentium-harum@dramaorg/illo-nisi-corrupti@dramaorg/voluptas-natus@dramaorg/voluptas-voluptas-accusamus@dramaorg/voluptate-exercitationem-qui@dramaorg/totam-sed-architecto@dramaorg/totam-ut@dramaorg/unde-reiciendis-nihil@dramaorg/voluptate-magni-repellendus@dramaorg/veniam-repellat@dramaorg/veniam-blanditiis@dramaorg/voluptates-tempore-esse@dramaorg/totam-eos@dramaorg/totam-illum@dramaorg/totam-error@dramaorg/vero-accusantium-voluptates@dramaorg/vitae-quasi-ea@dramaorg/vero-placeat@dramaorg/unde-rem@dramaorg/velit-quos-ipsum@dramaorg/velit-nihil@dramaorg/vel-temporibus@dramaorg/voluptate-quo-atque@dramaorg/voluptatem-nisi@dramaorg/voluptate-voluptatum-blanditiis@dramaorg/ipsam-commodi@dramaorg/incidunt-doloremque@dramaorg/inventore-maxime@dramaorg/ipsam-aliquid@dramaorg/ipsa-dignissimos-cum@dramaorg/iste-porro@dramaorg/itaque-optio-beatae@dramaorg/iste-quia-accusamus@dramaorg/laudantium-eum-labore@dramaorg/laborum-deleniti@dramaorg/laudantium-ratione@dramaorg/laborum-sit@dramaorg/maiores-ea@dramaorg/maiores-ratione@dramaorg/magnam-sit-neque@dramaorg/magni-explicabo@dramaorg/nam-quaerat@dramaorg/nam-pariatur@dramaorg/mollitia-consequuntur@dramaorg/nostrum-officia@dramaorg/nulla-placeat@dramaorg/numquam-sit-quaerat@dramaorg/occaecati-alias@dramaorg/pariatur-nam@dramaorg/perferendis-ipsa@dramaorg/perferendis-quia-dolorem
2.9.89

11 months ago

1.4.26

1 year ago

2.9.88

12 months ago

1.4.28

1 year ago

1.4.27

1 year ago

1.4.29

1 year ago

2.9.92

11 months ago

2.9.90

11 months ago

2.9.91

11 months ago

1.8.75

12 months ago

1.8.76

12 months ago

1.6.53

1 year ago

1.8.77

12 months ago

1.8.78

12 months ago

1.4.31

1 year ago

1.8.79

12 months ago

1.4.30

1 year ago

1.4.33

1 year ago

1.4.32

1 year ago

1.4.34

1 year ago

1.7.70

1 year ago

1.7.71

1 year ago

1.7.72

12 months ago

1.7.73

12 months ago

1.5.50

1 year ago

1.7.74

12 months ago

1.7.75

12 months ago

1.5.52

1 year ago

1.5.51

1 year ago

1.5.53

1 year ago

1.7.53

1 year ago

1.7.54

1 year ago

1.7.55

1 year ago

1.7.56

1 year ago

1.7.57

1 year ago

1.5.34

1 year ago

1.7.58

1 year ago

1.7.59

1 year ago

1.5.36

1 year ago

1.5.35

1 year ago

1.5.38

1 year ago

1.5.37

1 year ago

1.3.17

1 year ago

1.5.39

1 year ago

1.3.18

1 year ago

1.3.19

1 year ago

1.7.60

1 year ago

1.7.61

1 year ago

1.7.62

1 year ago

1.7.63

1 year ago

1.7.64

1 year ago

1.5.41

1 year ago

1.7.65

1 year ago

1.5.40

1 year ago

1.7.66

1 year ago

1.5.43

1 year ago

1.3.20

1 year ago

1.7.67

1 year ago

1.5.42

1 year ago

1.3.21

1 year ago

1.7.68

1 year ago

1.5.45

1 year ago

1.7.69

1 year ago

1.5.44

1 year ago

1.5.47

1 year ago

1.3.24

1 year ago

1.5.46

1 year ago

1.3.25

1 year ago

1.5.49

1 year ago

1.3.22

1 year ago

1.5.48

1 year ago

1.3.23

1 year ago

1.3.26

1 year ago

1.8.80

12 months ago

1.8.81

12 months ago

1.9.88

12 months ago

1.8.82

12 months ago

1.9.87

12 months ago

1.8.83

12 months ago

1.8.84

12 months ago

1.8.85

12 months ago

1.8.86

12 months ago

1.8.87

12 months ago

1.3.16

1 year ago

1.2.13

1 year ago

1.3.15

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.9

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

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago