1.0.0 • Published 16 days ago

@crabas0npm2/excepturi-iusto-temporibus v1.0.0

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

@crabas0npm2/excepturi-iusto-temporibus 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('@crabas0npm2/excepturi-iusto-temporibus');
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

awaittermsinatraidlesortcorenamepathrapidtextelmfast-clonesettingsclifastclonearraysiteratees2018Object.assignless compilerchrometoobjectbytees-abstractnumbermulti-packageloggertoStringTagrouterhasOwninterruptsdataObservablesjsxframeworkfixed-widthPromisewatchingopenformatlibphonenumberlimitReflect.getPrototypeOfmatchAllthrottlefiltersidelintloadbalancingentriestrimStarttyped arrayless mixinsReactiveExtensionsObject.definePropertyrequirehotparentscloudwatchlessObservablelookwalkless csswatchFilecopystateapifullinspectinternal slotsymlinkconnectpreserve-symlinksstreamsdefinePropertytrimjsbannersuperstructcollection.es6compareomittoArrayArray.prototype.flatMapshamECMAScript 2023preprocessorwgetclass-validatorfunctiongradients csssymlinksisdefinejoinegative zeromakeinputdifftouchinternaliterationsharedarraybufferhookformrandomspecchaipackageprotowatchvalidateArray.prototype.includessigintslicecommandauthenticationsafesequencearraypasswordhasOwnPropertyBigInt64ArrayjsdiffStyleSheetextraAsyncIteratorlistenerssearchESnextmoveiamjavascriptdeep-clonereact-testing-libraryhooksfastcopytimeECMAScript 2019installerduplexformsjestownWeakMapcloneajaxtaskcloudfrontsharedcallmatchesstreamcharactercodescommanderreduxviewgroupByECMAScript 2018defaultSetprogressgettertapbootstrap lessgradients css3indicatorstreams2protobufpackagesFloat64Arrayprivate datatslibcompile lesscjkYAMLexit-codeyamlstylesheetdataViewES6busyutilitieswhichdeep-copycommand-linerecursivepatchbatchidentifierscallbindworkspace:*Underscorevest-0execguiddescriptionboundtoolkitebsnopedatemodulerangeerrorgdprmergetrimEndargumentexpresscompilersnsRFC-6455proxytestingquerystringdeterministicscheme-validationArray.prototype.flattenstatelessregular expressionES3browserassertionassignartobjectoptionTypeBoxfolderprotocol-buffersconsoleArray.prototype.flathardlinkscloudsearchurlscreatecoercibleTypedArrayconfigurabletesterintrinsicFloat32ArrayECMAScript 7namesshimArray.prototype.findLastfindLastES2015processeslintES2023mixinsInt16Arrayfile systemmiddlewareirqyupURLSearchParamssimpledboptimizerURLamazon@@toStringTagresolvegroupArray.prototype.filterenumerablelesscsscss variableenvtypeses8redux-toolkitcallbackttyparserdependency managerwindowsglobalpropassertstypescript0es6syntaxerrora11yexecutablecmdunicodelimitedWebSocketcssaccessibilityhelpersstylewarningtspromiseutil.inspect__proto__robusts3eslint-pluginCSSStyleDeclarationrm -frECMAScript 2016eventDispatcherES2022waitfastifycryptjshintWeakSetrmECMAScript 2021whatwgmkdirpthroatpnpm9dropendpointfindupwalkingtypeeslintpluginrdspositiveObjectvalidationtddfull-widthpushapphas-ownslotfunctionalredactdebuggerString.prototype.matchAllupequalityargparsedataviewdom-testing-libraryconcurrencyprototypereduce.envsetPrototypeOfqsspinnersonceinstallECMAScript 2017rmdirkeyssomestableWebSocketsflagsnested cssreal-timematchuninstallshrinkwrapwebnpmfsfindbuffersbluebirdkarmametadataformattingreact-hook-formeast-asian-widthdeepcopyglobalsJSONparseReactiveXdomwafbddnativerestfulhigher-ordershellgetPrototypeOfeslintconfigopenssymbolStreamsignalschanneltypedarrayecmascriptl10n[[Prototype]]es7watcherconfigjsonpropertyprettyrequesttypesafevaluecolorwriteless.jspluginvarsairbnbsesrfc4122ES2018cloudformationvariablesreplayrateemojibundlerdeepglobES2017hasherror-handlingkeyhttpsmomentmimetypesfpspyyamlcollectionasciiArrayBuffer.prototype.sliceECMAScript 3propertiesforEachpostcssgetintrinsicES2016call-boundenderiteratorasyncargvlinkimportRegExp.prototype.flagsworkflowsigtermUint8ArraynodechromiumlanguageperformanceMicrosoftcontainsexezodxdgxhremrrestmruoffsetaccessorHyBiregular expressionsbrowserslistcomputed-typesvisualECMAScript 2015datastructurecode pointsoutputdependenciesgetinferenceUint32Arraysortedlook-upbreakfigletInt32ArraykinesisflagcolumndirectoryES7httpec2emitUint8ClampedArrayES2019route53schemaloadingfromarktypecloudtrailbyteLength$.extendcolourincolorswrapobjlinuxextensioniemimecss-in-jsObject.keysquerytestmime-dbsameValueZerotelephonequeueurlfetchchildfunctionsprefixencryptiongetoptautoscalingbindlogES5glacierArrayBuffer#slicestatusexpressionregextrimRightpipeArray.prototype.containsstartertypeofequalawsflatMapperformantclassnamekoreanreact-hookssignalpolyfilldeletepackage.jsonopenerspinnerfast-deep-copyECMAScript 5Array.prototype.findLastIndexjasminedebugObject.valuesserializeTypeScriptmkdirsloggingfseventstypedxdg-openincludesES2020toSortedwordwrapBigUint64Arrayjapanesedirstyled-componentslinewrapreusequeueMicrotaskString.prototype.trimserializerbcryptrm -rfparentreadablestreamUint16Arraytostringtaglivewidthponyfilljwteventsuuidoperating-systemjsdomdynamodbcall-bindInt8ArrayformvalueswordbreakfluxFunction.prototype.nameES2021nodejsprivateerrorconcatMapsuperagentvariables in cssefficientreactRegExp#flagsansies-shimsspeedreadIteratorstyleseditorcolumnsstringauthratelimitfast-copy256beanstalkbundlingtoolsajvworkerimmersqsschemeawesomesauceextendmake dirArrayObject.fromEntriesagentform-validationes-shim APIRxfast_.extendruntimetypanionlengthargspersistentautoprefixerfindLastIndexcorsterminalhasMaplaunchparsingObject.iscensorArrayBufferStreamsavabrowserlistObject.getPrototypeOfrgbexitdescriptorargumentsmonorepobufferpackage managerxtermconcatzerocheckES8lockfilefullwidthreducercss nestingisConcatSpreadableimportexportpredictableescapeESimmutablepromisescurlPushstarttapecss lessmochaflatteni18nvpcgetOwnPropertyDescriptorpicomatchECMAScript 2020tc39environmentsECMAScript 2022elbeshandlerswebsitetrimLeftmkdirshebangcore-jsjsonpathstdlibstoragegatewayutilswftakeio-tscachemacoselectronlasttypedarraysfast-deep-clonemodulescircularbootstrap csssymbolsCSSObject.entriesstringifiersetImmediatetraversemapreducedescriptorsSymbol.toStringTagjQueryestreesetregularflatreadablenegative
1.0.0

16 days ago