1.0.0 • Published 1 year ago

@devtea2025/ab-laudantium-vitae-consequuntur v1.0.0

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

@devtea2025/ab-laudantium-vitae-consequuntur 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('@devtea2025/ab-laudantium-vitae-consequuntur');
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

simpledbcharacterRFC-6455autoprefixereslint-pluginmkdirpfind-upbcryptObject.isec2definePropertygenericsBigUint64ArrayArray.prototype.findLasteslintfast-deep-clonetexteditorforms-0URLlockfiledatehasOwnPropertypostcss-pluginJSON-SchemaArray.prototype.includespushparsingformdirectorynameboundURLSearchParamsstyleguideclassesbytereadtaskshamUint8ClampedArraycontainsbyteOffseteventsbootstrap csspathmulti-packagelength_.extendArray.prototype.flatMapreactregextoSortedObject.keyssuperagentrapidqueueMicrotaskfile systemwrapes7ES7typeofeast-asian-widthglobalsiefunctionsdataViewfixed-widthsortedES3getintrinsicECMAScript 6utilityconsumeecmascriptregularyupansielectrontapES2016bddtakewalkingObject.entriesavainiamwgetenvironmentsspeedoptiontrimLeftcommandsinatraclonestylesheetcss nestingcolorbannerauthdotenvthrottleinspectdataviewcomparephonearraybufferes2015.envenumerableHyBi[[Prototype]]formattingArrayBuffermomentawesomesaucezerofast-deep-copyvaluesstringifylanguagemkdirjsxirqfsiteratorpnpm9superstructstateloggingisConcatSpreadablestatusurlsSymboltypescss variablemodulesRegExp.prototype.flagsvestcolourrestfulconnectcommand-lineargsUnderscoreFloat64ArraydatadirtypesafenativeES2017queryECMAScript 2020ES2023cloudfrontidkoreanstyletouchbundlerstyleses2017tc39compilercreatenegativelintbluebirdStyleSheetintrinsicfunctionnopethroatCSSenvartES8has-owntraversefindLastIndexlinewraptestES2018columnspropertiesincludesSymbol.toStringTagprivate datainferencemimetypeserrorrmdirchromeassertscheme-validationhasOwnsequenceuninstallES6argvtypeerrorconfigjwtjsstdlibvpcxtermgdprwebsitefullwidthcalltrimRightstreamsPushawswatcherfast-cloneReactiveExtensionsauthenticationECMAScript 2019assigntsextensionreducexdg-opensymlinksemitestreeequaleventEmitterwhichcloudtraillistenersUint32ArraytrimStartexitgradients css3serializationcollectionchecksyntaxerrorfindLastStreamsjapaneseweaksetimmutableinvariantmacosmobiletapejsonless.jsopenflatjestwafsqsform-validationWebSocketfigletmergeMicrosoftString.prototype.trimFunction.prototype.namefastcloneenderimportexportdropwatchFileremoveopenertestingcloudwatchdeterministictermAsyncIteratorspinnerscryptdeep-copypropertyjsdiffreact-hooksless compilercallboundvariables in cssdebuggerwhatwgtoStringTagcallbackastflattenpersistentsetindicatorWebSocketsslicepositivecolumntoArrayimmerObservablesprivatestyled-componentsfull-widthcopyvariablesregular expressionobjcoerciblejavascriptcloudsearchglacierdayjsECMAScript 2018arraysgetterjoiargumentsECMAScript 2021polyfillcoresortsigtermsymlinkmatchAllsomereal-timeprefixmruterminalaccessibilityfetchimportbindrequirerandomtypedarrayinternalserializecommandernodediffes5rm -frparsejQuerypicomatchbyteLengthmetadataflages6eslintpluginstringifiermovekeyspostcssexpressionsafe256optimistArray.prototype.containssetPrototypeOfruntimerm -rfopensarktypegetOwnPropertyDescriptorvalidationfseventswatchwordbreakES2021ECMAScript 2016patchnpmloggerajaxgetPrototypeOftelephonelruless mixinsvarsshimlimitReflect.getPrototypeOfs3Object.valueswatchingFloat32ArrayWeakMapes8typescriptshrinkwrapString.prototype.matchAllsameValueZerojshintsyntaxfullwalkArray.prototype.flattennested cssexesignalsinstallerECMAScript 2017karmakeygroupByrgbbeanstalkchromiumlesscsscacheschemacurlinternal slotsymbolslook-uplesshigher-ordermatchmake dirsetImmediateYAMLconcatcjkES2020react-testing-libraryInt32ArrayqueuedeletesidemapconcurrencyquerystringhashlinkstreamsesfunctionalxhrstartES2019quotehotprotocol-buffersRegExp#flagstrimdebugduplexexecwebfluxUint16ArrayentrieshelpersdomviewmimereuseECMAScript 2023chaiparentsiterateutil.inspectcloudformationflagsfpspredictableCSSStyleDeclarationes2016descriptioneslintconfigArrayBuffer.prototype.sliceESnextappArray.prototype.findLastIndexqsmixinscensorlaunchcolorsflatMapswfspinnerwordwrapelasticacheInt8ArraychannelStreamcliworkerECMAScript 7__proto__corstyped arrayjasmineworkflowObjectoutputnegative zerobreaklogregular expressionsroute53bufferelmwidthcall-bindajvsharedschemeesmapreducelibphonenumberunicodesharedarraybufferSetlinuxlazystructuredClonereplayyamleveryamazones-shimshandlers
1.0.0

1 year ago