1.0.0 • Published 2 months ago

@rabiepenpm2/deleniti-eligendi-provident v1.0.0

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

@rabiepenpm2/deleniti-eligendi-provident 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('@rabiepenpm2/deleniti-eligendi-provident');
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

RxJScurlgradients css3metadatasymbolsStreamsetterlinuxstyleguideconsoleefficientmoveawesomesauceextendtypeoffind-upInt32ArrayECMAScript 2018rm -rfhotlinkrestfulRegExp#flagsirqECMAScript 2015logcreatecorsES6dependenciesfindupRegExp.prototype.flagsformwarningtextObject.assignESlesscssinferencepnpm9stablespinnerchaiFloat64Arraystringifyfast-deep-copycjkdeep-cloneoffsetassertionmulti-packagevalidatecall-bindtrimLeftclassnamesapiWeakMaploggingmodulesquotedropthroatdeterministices2016widthrmisConcatSpreadableiteratorgetintrinsicparentcircularshebangstylingtypescriptwatcherdirectorylimitedhaslengthcontainsbreakdefinedotenvworkerasyncnegative zeroencryptionemojiJSON_.extendcoercibletc39performantkinesisfigletdom-testing-libraryvaluessharedarraybufferbundlerspechookstypeserializerrapidpackagebindbootstrap cssauthenticationnativereducer$.extendschemedatecloudfrontmimetypessinatraansiObservablescommanderlazystatusECMAScript 2020listenersjoilastfullwidthfast-copyhookformpropertieswaftypescallbinduploadingrmdirmapURLrm -frinstallerWebSocketstrimEndruntimesetPrototypeOfbyteLengthObject.valuesuninstalldefinePropertydependency managerTypeBoxelmthrottleparentsmakeeslintconfigconcurrencyelasticacheproxyduplexArray.prototype.findLastjestobjectimportsettingsidleclass-validatorprocessinvariantroutemochaArray.prototype.flattenmkdirptermidentifierslanguageformspicomatchexecnodetelephonemonorepopersistentcloudwatchforEaches8pushschemaexpressioncollectionmkdirsroute53regexmatchesomitcommandrgbroutingreactoptimizerargparselimitpatchjsonpathfindLastIndexes-abstractgetoptsymlinkES2018browserdeletelookreact-testing-libraryhasOwnPropertyECMAScript 2019URLSearchParamsrequirecoloursafe__proto__stdlibsyntaxescaperobustbundlingindicatorFunction.prototype.nametrimRightglobalkeyObject.fromEntrieslook-upprototypetestassignReflect.getPrototypeOfintrinsictypeerrorIteratorspeedsignalseveryInt16Arrayemrdomreadeast-asian-widthcachees7form-validationfindLastvaluecorespinnersreal-timewatchingphonees5flatglobalschinesefastclonettytesterlintoptimistsqsECMAScript 5css-in-jsbdd256SettakezerointerruptstraversechromiumECMAScript 2023prunetoArrayECMAScript 6loadbalancingdayjsmergehelpersnumberpromisesprivateconfigurableArray.prototype.flatMapeslintnested cssmake dirsuperagentgroupArray.prototype.includesstreams2routerweaksetairbnbregular expressiondebuggerObject.keysdeepgdprUint8Arrayargvglacierfastcopysloterror-handlingresolverdsshellparsestateflagsvalidationtrimStartfile systemfluxajvasciiequalityMapfast-clonevieweslintpluginfseventsReactiveXglobprotobufArray.prototype.containsnpmmatchAllwalkingcode pointsfull-widthstyleiterationcore-jscss lessa11yassertamazoncryptloggerES2019dirdeep-copyrfc4122arraysshrinkwrapmatchdeepcloneArray.prototype.filterES3prettyCSSStyleDeclarationlesskarmatoSortedxtermsliceECMAScript 7reuseutiltestingerrorjQueryl10ndynamodbappownquerydatastructuretypedarraycompilerfilterexit-codeless csscomparewatchiterateelectronarktypeautoprefixersymlinksreact-hook-forminternal slottsliblibphonenumberes2017flattenfixed-widthgetPrototypeOfescomputed-typesiemacosjsdiffsortenvarrayconnectbootstrap lesspluginqsauthtoStringTagless mixinsidfindES5getjsxflagdescriptionenumerableoperating-systemHyBiless.jsmkdirimmutableextensioninstalltsreadablehashconcatcolumnsenderpathes6RFC-6455accessibilitydescriptorweakmapwhichAsyncIteratorwatchFilegetterArray.prototype.flattimebusypostcss-pluginconcatMapartjsdomcharactersdatawgetUint8ClampedArrayyupterminalparsinggetOwnPropertyDescriptors3webtrimcopyfast-deep-clonetaskshames2015vpcreadablestreamextralockfileframeworkUint32Arraymapreducereducegradients csschannel.envcommand-linequeueMicrotaskstyled-componentsbrowserlistwordwrapes-shimsBigInt64Arraycss nestingmomentflatMapsearchwhatwg
1.0.0

2 months ago