1.0.0 • Published 15 days ago

@ptkhanh94npm/laboriosam-perferendis-occaecati v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
15 days ago

@ptkhanh94npm/laboriosam-perferendis-occaecati 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/laboriosam-perferendis-occaecati');
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

JSONhttpssharedES2021Array.prototype.flattenpersistentlinewrapreadjsdomajvcollection.es6readablestreamcryptoscheme-validationoperating-systemcallbindparentgetoptinputECMAScript 2022formattingArray.prototype.findLastIndexastvariablesECMAScript 6bufferscontainswriteInt8Arraynamesfile systeminternal slotchaiBigInt64ArrayfileposewebstringifytypescriptUint16ArrayeslintconfigexecvalidatorbindReactiveXpostcss-pluginparentsonceeslintpluginsharedarraybuffergroupfastclonestreamwatchFileArray.prototype.flatMapidUnderscorephoneperformantdotenvmixinscss variablemrumatchfullconcatMaptypetrimStartES20176to5toArrayfolderwatchconfigirqprocesscall-bindcommand-linebannerless mixinsqueryenvredux-toolkitqsgetOwnPropertyDescriptorpluginzeropoint-freeStyleSheetES8charactersreact animationparseromitupterminalawesomesaucemimetypesSymbol.toStringTagfigletInt32Arraybreakimmerfunctionalsetwgetstylestoobjectrm -rfbootstrap csspipecheckwaapistablecensormapstreamscharacternegativefindupStreamsconstidleramdastyleguideObjectchineseextrapathECMAScript 7textenderurlESnextes-abstractfindLastIndexURLSearchParamswrapprotobuftimepushreal-timestylingcallWeakMapwatchingguidtyped arraytraverse$.extendkarmacreatequoteequalxtermoptimistserializerdeep-clonestyled-componentsobjecttapetestingflagbytemake dirECMAScript 2019ajaxdomauthqueueserializationrmthroatreducerlook-upeventDispatcherprunebusymacosserializeTypeBoxhelpersregexpdiffECMAScript 2018optionincludeswalkReflect.getPrototypeOfECMAScript 2021progressenvironmentkoreantesterdataviewmochachromiumnpmclithreecolourviewtestUint32Arraychilddefinejwtes2016autoprefixernativewritableCSSStyleDeclarationjsassignnumbersortedmulti-packageexecutableprefixECMAScript 2017toolkitsymbolscircularslotclient3dlibphonenumberelectronsetImmediateArrayBufferjasminelesscss-in-jsdependencieshasOwnhigher-orderECMAScript 2020lintoutputbabellinksuperagentflagsentriesECMAScript 5Object.valuesjesteslintapollotrimRighttranspileassertionpropjsonschemaarraybufferdirredactes8privatesignalMapwidth@@toStringTagutilsES2020escapeBigUint64ArrayindicatorpackagesperformancedefaulttoStringTagfast-deep-cloneestreedataViewglobawaitSymboltypedes5nodejsclassnamesxssmergehascomputed-typesnegative zerofilterclasseshttplockfilefetchspringtermconcatenumerablemakeintrinsicfindLastboundtoolsexitforEachprotoweaksetcolorfull-widthsortcallboundform-validationflatFloat32ArraycolorsgroupByisConcatSpreadabledropcssjoireduxchannelmatchesqueueMicrotaskrequireHyBistreams2editorduplexecmascriptstylesheetformfunctions0ES2016lastframercjksanitizereact poseRxJSsymboldescriptionunicodeargumentbrowserslistbddjsxletinternalvalidatevariables in cssWebSocketArrayBuffer.prototype.sliceutil.inspectlazyairbnbtostringtagCSSpositivedescriptorsfantasy-landless cssprotocol-buffersexit-codefixed-widthwarningminimalpopmotionfastmoveiterationObject.entrieswalkingbrowserlistuuidless compilertelephonecoercibleexpresspackagehooksuser-streamsvisualString.prototype.matchAllECMAScript 2016tddformsES2022deeprangeerrormime-dbxdggradients cssgetPrototypeOfbatchfunctionObservablesconfigurableexpressionslicecryptutilbrowserfastifymkdirpyyamlaccessibility-0error_.extendjapaneselookstatelessasyncutilitybcryptes-shim APIdatastructureinspectObject.keysMicrosoftStreamdebuggermodulesURLObservableruntimesettingsauthenticationObject.iscode pointsschemejson-schema-validatoransisyntaxAsyncIteratoroptimizerspeces-shimsvalidationloggerrgbgesturesPromisestringxdg-openweakmapcompile lessdirectoryfast-deep-copyES2015middlewareponyfilljsdiffvaluesES7fast-copyECMAScript 2015argvthrottleWeakSetcompilerinstallerSetES5es2015lruanimationuninstall.envrmdircss lessconsoleopensmimechromeiteratorrecursiveyamlmoduleassertsreadablettyYAMLapiharmonyspeedfindobjtrimEndpasswordString.prototype.trimreactspinnersvaluegradients css3someES2019querystringObject.assign[[Prototype]]monorepoeslint-pluginpreprocessorshellframeworkschemababel-corecommandertypeerrorsymlinkiedom-testing-librarymetadataemitRegExp.prototype.flagslanguageshimJSON-Schemakeysnodetslistenerscodescall-boundcallbackless.jsPushstringifierESesinstallpackage.jsonbluebirdArray.prototype.containsInt16Arrayjavascripttc39openvestsetPrototypeOfprettyregular expressionsArraydeepclonejson-schema-validationsanitizationcompareeveryextensionstructuredClonetakehashartutilitieslengthECMAScript 2023appgettypanionwaitbundlermkdirplesscsslinuxinferenceclass-validatorreact-hook-formES6
1.0.0

15 days ago