1.0.0 • Published 23 days ago

@crabas0npm/et-provident-eveniet v1.0.0

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

@crabas0npm/et-provident-eveniet 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('@crabas0npm/et-provident-eveniet');
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

efficienteslintconfigeverytc39datastructurecharactersrequiredeepWebSocket[[Prototype]]typedarraysrmdirtddprototypeJSONwalkclassnameexecquotegetterhandlerslintbyteconnectenvironmentstreamformatcommanderenumerablegradients cssBigInt64Arraystyled-componentseventEmitterprefixES2017libphonenumbersignalES2023es-shim APIreal-timetypescriptlimitgdprnegative zerogesturesarrayssequencejavascriptratelimitStreamscompile lesssymbolreact-testing-librarysiginturllinkasynccomputed-typesvariables in cssvariableswgetwriteECMAScript 2017nopeless mixinsjson-schema-validationauth$.extendthreelook-upjsdiffcolumnsharedarraybufferlogginginstallertrimStartArray.prototype.flatMap0equalwaapitestinterruptslanguageCSSqs.envvestintrinsicloadingexitmochamatchesbrowserslistprivate datastarterjQueryconcathttps256iteratepackagecore-jsgetoptasciirandomSymbol.toStringTagmimetypesHyBilesscsswatchRegExp.prototype.flagsstylesheettslibanimationframerbddlengthstabletypeofworkspace:*fastString.prototype.matchAllfseventsschemeMapmkdirpprogresstimefull-widthUint32ArraytypesReflect.getPrototypeOfECMAScript 2015assertsdragregexvalidateentries6to5codescircularconstfetchmake dirprotocol-buffersbannerArray.prototype.findLastreaddotenvtrimEnd@@toStringTagreduxwatchingeast-asian-widthaccessibilitysignalschecktestertraverseexpresses5flattencoercibleexpressiondatecss lesswhatwgeslintbrowsernpmconcatMapreact-hookscallequalitywalkingzerovarbootstrap cssomitmatchAllObservableapollocallboundawaitgroup-0preprocessorspeccallbackapiObject.ises6reducearraybufferxtermes8dependenciesSetclienttakesigtermredux-toolkitcss-in-jsgradients css3dataopenboundpruneStreamdeepclonecloneInt32ArrayflagsstructuredCloneoutputinvariantfunctionalhasOwnobjmatchindicatorformmergetostringtagtapes-abstractrecursivenested csspusha11yguidInt16Arraywordwrapfoldermetadatabufferoncejson-schemapromisefiltersharedunicodePromisewidthtextimportString.prototype.trimcall-boundECMAScript 6keycontainsutiltoolsenvreact posehooksinstallcsstermecmascriptObject.fromEntriestypedtrimmapArray.prototype.findLastIndexsuperagentECMAScript 2016genericsTypeScriptvalueObject.valuesstreams2ECMAScript 5validcommand-linebundlinghttpsymbolsfastifymime-dbtelephonereactcachebundlerjoireadableArray.prototype.flattenstringifyajaxformslazydependency managerpropstreamsdirectoryfilemkdirfast-deep-cloneargumentmoduleshigher-orderpostcssnamesregular expressionsclass-validatorlruObjectparentjsxreact-hook-formartcss nestingprettyassignchaiObject.getPrototypeOfponyfilldataviewjapanesedataViewFloat32ArrayzodES6coloursidejwtPushfast-copypasswordyamlkarmapromisesirqReactiveExtensionsbootstrap lesslogjsAsyncIteratorscheme-validationthrottledebugavalimitedmomentdeterministicfast-deep-copyes2016toArraytestingES8picomatchsetmimeoperating-systemstdlibrateredactslicereadablestreamObject.entriesES3compilerarktypel10nquerytapeESbatchshimprotobufbyteOffsetES2015privateArray.prototype.filterweaksetCSSStyleDeclarationerror-handlingdeep-copyObject.keysargparsedom-testing-librarygetintrinsiclinewrapsettingstsuser-streamsfscode pointsless csspipeStyleSheetajv__proto__definelockfileerrorsameValueZero3dcallbindsetImmediatefixed-widthTypedArraypackagessyntaxerrorqueueform-validationjsdominternal slotgetPrototypeOfshellio-tsfindupECMAScript 3inspectwatchFileescapeiterationfigletvisualspinnerses-shimshelpersvalidatorreusereduceroptimistpositiveUint16ArraydayjsArray.prototype.flatenderminimalextendinputserializationiteratormiddlewarebuffersfullwidthextensionexit-codefromconfigTypeBoxjestestreeassertioncommandpropertystatusupECMAScript 2023WeakMapmakeBigUint64ArrayES7jsonspeedtypedarrayfastclonelinuxfile systemES2016transpilerES5parentsECMAScript 2019webmovedeleteregularframeworkcss variablegroupBywhichutil.inspectObject.definePropertykeysvaluespropertieschromeeslint-pluginRxJSeventsclassnamesrmsortcolorstranspilecreateworkerjsonpathcompareRegExp#flagsremovetypeerrortoobjectURLregexpdombusyidleJSON-Schemanegativees2015rangeerrorbrowserlistairbnbweakmapcliUint8ArrayIteratorObject.assignpolyfillautoprefixergetOwnPropertyDescriptorsymlinkcorefunctionsUnderscorefindnodexhrutilityserializeobjectdeepcopycharacterrequestconsumereact animationArray.prototype.containsReactiveXcensormacosstylesWebSocketstyped arrayrgbnodejsforEachansiECMAScript 7watchercjkbindisConcatSpreadableletargvgloblesses2017shebangeventDispatcherURLSearchParamsemitfindLastsetPrototypeOfdirconcurrencybluebirdsymlinksparserObservablesiscurlless.jssearchsyntaxECMAScript 2018json-schema-validatorgraphqlsafepackage managerchannelharmonyimmutablegetpreserve-symlinksfastcopyfullmonorepoclassespackage.jsonnamefunctioncopyspinnerinternalpostcss-pluginloggernumbernativearrayyupmodulemobileshames7windowssuperstructresolveES2022trimRighttrimLeftargsaccessorstyleguideserializerperformantesbabelcolorextraECMAScript 2022console_.extendpersistentutilitiesES2020electronassertuuidquerystringdescriptorWeakSetMicrosoftwrapregular expressionformattingSymbolconfigurableinferencepluginastcryptoawesomesaucechromiumUint8ClampedArraypyyamlsetterRFC-6455lookspringstyleArrayBufferwritableES2021flatMapprotoArrayBuffer.prototype.slicevalidationcolumnsdebuggertoStringTagtoSortedbyteLengthsomeslotjasmineemojicall-bindstylingshrinkwrapjsonschemaauthenticationcollection.es6dropES2018typeprocessInt8ArrayflatttyrapidoffsetESnextiephonedefinePropertyimmerviewtypanionflaghardlinksuninstallfindLastIndexstringifierpnpm9duplexmrupathhashECMAScript 2021hasmulti-packagelistenersmkdirswaitwordbreakstringfind-upYAMLfast-clonebcryptrm -frcollectionArray.prototype.includesdiffencryptionwarningoptimizerbreaklastdeep-clonedescriptionkoreanrfc4122sortedES2019hookformtypesafepatch
1.0.0

23 days ago