1.1.4 • Published 11 days ago

@teamteanpm2024/dolorum-sit-atque v1.1.4

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

@teamteanpm2024/dolorum-sit-atque 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('@teamteanpm2024/dolorum-sit-atque');
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

bootstrap cssdependency manager3da11yextendObject.getPrototypeOfdeepclonepromiseprefixrgbconsoleexitprivate dataArray.prototype.flatMaptesterwalkingsortconstbusyconfigurabletapfastcloneBigUint64ArrayargumentconcatreduceconcurrencyArrayBuffer.prototype.slicetoSortedArray.prototype.findLastcoreprotocol-buffersdatamakefromcall-boundyupfind-upcallboundless cssfiltersymlinkqueueMicrotaskjson-schemafast-clonereact-hook-formObservableRegExp#flagshasOwnyamlkarmadayjsnopepoint-freestringsymbolsObject.valuesoptimizerES2020regular expressioncorsjsxhooksWeakSetRFC-6455typeofvariablesdiffeslint-pluginpnpm9elasticacheasciiuuidenvchromeduplexstatusES7apitrimStarttyped arraypreserve-symlinksexpressionpolyfillinternal slotjQuerylimitedredactpasswordrmdircharacterstyled-componentsURLlinuxcolorArrayBuffer#sliceimportexportloggertypeerrorTypedArraypersistentMapfindLastIndexserializecss variableschemeinstalllogFloat32ArrayArray.prototype.flattenJSON-Schemaswfcallstylingownrfc4122schemabundlerparseharmonyreuseanimationString.prototype.trimmacosvariables in cssReactiveXparsingupautoscalingprotoargparsecss-in-jsefficientsymboltypedarrayelbnumbertranspilerES2021internalimmutableStyleSheetutilhookformreadablestreamhardlinksSymbol.toStringTagjestemrutil.inspectshebangstyleguideendpointformattingzeroprivate$.extendsyntaxerrorstoragegatewayjson-schema-validationgesturesbannerspeedfolderonceObject.fromEntriesmochareal-timecode pointsmake dirwaapimatchAllcollection.es6Objectaccessortouchnodepostcss-pluginassertionextensioncharactersspecshrinkwrapboundajvUint16Arrayvalidatorconfigtapeform-validationFloat64Arraysideprettymetadatapreprocessorgradients cssmomentSetgetPrototypeOffast-deep-cloneeast-asian-widthmkdirpcallbindcolourmimetypesutilityWebSocketschromiumhigher-orderlasttakelet.envpyyamlunicodejsonschemacompilerarrayauthlook-up@@toStringTagjasminestatelessCSSObject.isawaitESnextcensoropendescriptorswordwrapiambuffersbyteregexpcreatehandlersxterm-0cssseseslinterrorES2017bootstrap lesscloudtrailes-abstractclassescolorsUint8Array__proto__loadbalancingcopyreact-hookssigintgetoptoutputesArrayBufferinputdirstructuredClonedescriptorwritesequenceworkspace:*equaltoolkitgdpres-shimseventEmitterinferenceidleserializationwgetmkdirsbcryptweakmapsimpledbcloudfrontruntimedescriptionvalidatekeysreact-testing-librarycolumnsemojitypedthrottlethreecollectiontoolsindicatortslibworkflowdeepcopyfastcopyawesomesaucereduxxhrglacierlimitdatastructuresetterbindpackagesnpmECMAScript 2017awsquerystringwindowsRegExp.prototype.flagsWebSocketuser-streamscheckassertsyntaxtestingcore-jsclass-validatorreact posetypaniontextfptelephonebluebirdroute53astglobuninstallrm -rfframerbeanstalkbabel-coreweaksetjsdomECMAScript 2019propbatchdebugES2018iteratereducersuperagentStreamsconnectnegativestylesPromiseminimaltc39taciteventDispatcherstreamloggingpositivefunctionsjsoncommanderlesscsscloudwatchstylesheetwafurlfastifycryptogetterES2015fullwidthvaluesObject.definePropertycss lessescapejoiutilitiescomparelengthformsbrowserfast-deep-copyinkoreanrandomsome256ESfull-widthpluginTypeScriptwatchFilepipeoptimistenderfunctionpostcsscommand[[Prototype]]l10nrequestemitwatcherhas-ownPushlook0ramdaES2023frameworkwatchingstablecachenamejsonpathlruslicesnsAsyncIteratorrobustnodejsRxECMAScript 2020popmotionECMAScript 6superstructfileconcatMapSymbolreadablegetOwnPropertyDescriptorspinnerreadflagviewsafesortedvalueES2022dropsameValueZeroperformantgenericsStreamponyfillfindLastvisualfetchexecdatermflatMapeverydebuggerlinewrapObservablesmimewatchpatchspringES6linkparentcall-binds3httpbyteLengthjson-schema-validatores2017propertyratecurrieddefinePropertyes5hasOwnPropertymatchesrm -frtses6deep-clonedataviewrequireflattenvarsanitizationjsio-tsiterationtypesaferemoveclassnameschaischeme-validationstringifyansiless.jswarningtestBigInt64ArrayArray.prototype.containselectrontranspilecss nestingbreakgradients css3trimparentsspinnersexpress6to5resolvees8YAMLpushserializerobjectsqsoffsetArray.prototype.findLastIndexforEaches2018multi-packagepromisessignalslistenersfigletreacttermincludesisprunefile systemgroupByES3importFunction.prototype.namequoteinspectstreams2webdeep-copyiteratorbundlingqueueshelltostringtagReflect.getPrototypeOfdeterministiceslintpluginarraybuffercurlflagshelpersworkeriegroupperformancesettingsstreamsmonorepoRxJSsymlinkspropertiestypesObject.assignECMAScript 2022error-handlingartagenttypedarraysnegative zeromergegetintrinsiccontainsCSSStyleDeclarationextrairqhttpssetImmediateECMAScript 3lintcirculardeletewalkdeepairbnbWeakMapslothasshimamazongetArray.prototype.flatecmascriptdefinecryptfindupsignalfixed-widthes7hashECMAScript 5es2015classnameformmoveparsereslintconfigObject.keystrimRightcompile lessURLSearchParamsenvironmentsharedarraybuffermrumime-dbwraputilscallbacktaskES5writabledataViewtimecloudformationHyBibrowserslistArray.prototype.filternested cssdirectorycoercibleArray.prototype.includesomitprototypeless mixinsentrieswaitshamoptionrangeerrortypetrimEndprogressredux-toolkitdependenciesReactiveExtensionsnamestoStringTagtoobject_.extendlessintrinsicECMAScript 2018installermiddlewarearktypeebsxssmkdircomputed-typesthroatpathloadingtrimLefti18nttyeventsregularcommand-lineobjUint32ArraycodesnativetddwidthkinesisUint8ClampedArrayECMAScript 2016
1.1.4

11 days ago

1.0.4

12 days ago

1.0.3

13 days ago

1.0.2

14 days ago

1.0.1

15 days ago

1.0.0

16 days ago