1.0.0 • Published 1 year ago

@ptkhanh94npm/eaque-delectus-possimus v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@ptkhanh94npm/eaque-delectus-possimus 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('@ptkhanh94npm/eaque-delectus-possimus');
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

jsxprunewalkArrayBuffer.prototype.slicesetImmediatejsonpaththrottleframeworkproxyvarsautoprefixerincludesagentglobTypeScriptCSSloggingredux-toolkitpushdeterministiclimitedratewaitArray.prototype.findLastIndexreducerextensionbindmkdirAsyncIteratorawesomesaucebootstrap lesskeyssortString.prototype.trimes2016webpatchfast-deep-copyhelperstoSortedtakeownenumerablenpmemrrmdircryptievalueidentifiersintrinsicgradients css3functionperformancerobustredactcloudformationnameserializemiddlewareStyleSheetcall-boundcallbindwordwrapfixed-widthcode pointslibphonenumberclassnameObject.istapsigtermeventDispatchervalidationtraverseamazonpersistentformatdebugsignalsECMAScript 2021endpointES3lrucensorwrapmatcheswalkingtypeerrorarktypees8assertstelephonemrucallboundserializationES2021argsmapreduceconcatsymbolsECMAScript 2020immer256beanstalkES2019Array.prototype.flattenprotobuftrimjsonfullhookscolumnsfetchfullwidthapiconsumecodesgetintrinsiceventsECMAScript 2019fastcloneboundbundlercharactersrandomcollectioncompile lesscoloreast-asian-widthclassestoolspromiseseslintconfigpackage.jsonRegExp#flagsTypeBoxexit-codeserializeres-shim APIrecursivedefineemojicloudsearchObject.keysasciies7processreact-testing-libraryimportparsinglistenerspipelink__proto__formmake dircjkpostcss-plugincss lessdataViewquerytoArrayaccessorcloudfrontstreamthroatrmbyteLengthpredictableassignES2018swfrestObjectWeakSetcloudwatchhookformstyleguidecolorsdirhardlinkspolyfillbddRegExp.prototype.flagsArraytaskBigInt64ArrayslicedatastructurebyteUint32ArrayES2022less compilertoobjectfileArrayBuffertostringtagnumber@@toStringTagpropertybreakdeepcopyWeakMapcorsyamlmatchwarninginstallpostcsssetPrototypeOfirqaccessibilityfunctionsequalityless cssajvcolourReflect.getPrototypeOfgetOwnPropertyDescriptorInt8ArrayenvcsshandlersslotstoragegatewaybrowserlisttddES7assertimmutablehas-0keyurlhttploadingmimetypesassertiones5compilerloadbalancingmobilewatchereverypasswordnegativeargparsebundlingtestingtslib$.extendmonorepochineseglobalMaptyped arrayregularstableprotoexitkarmaexpresslockfileeslintmocharoute53curlfastifydeepcloneFloat32Arraydatareduxinvariantpreserve-symlinkssetterrapidec2variablesunicodecheckstdliblesscsstesterUnderscoreproppreprocessordependenciescreatetoStringTagfasti18nwgetlook-upclass-validatorbuffersoptimizervariables in csswhichperformantenvironmentsmetadatadependency managerconsoleuninstallstringifierjoiyupmacoseventEmitterttyoptionqueueMicrotaskexecfinduptrimRightsuperagentstreamsReactiveExtensionsregular expressionhasOwnPropertyArray.prototype.flatMapfindopencss nestingprogressSetString.prototype.matchAlltypescriptRxJSeslint-pluginES5queuewatchFilecontainsprototypenested cssauthenticationES2016awsECMAScript 2015vpcelectronbrowserslistgenericssymlinktypedarraysformsnamessymlinkses2018modulessearchhas-owndescriptorreadencryptionreuserfc4122makeYAMLReactiveXObject.entriesuuidkinesisStreamsreduceregexpconnectinputtypefunctionaltestoncePromisequerystringjsdom_.extendES2020autoscalingreadablestreamfindLastIndexisspinnersfast-copywordbreakcolumncallESRFC-6455ECMAScript 2023iteratedescriptorsES8omitnodewhatwgwriteless.jsschemajasmineasyncECMAScript 2017indicatorpropertiesprettytrimEndSymbolidleObservableformattingmkdirstyped
1.0.0

1 year ago