1.0.0 • Published 19 days ago

@berufungirnpm/molestias-doloremque-mollitia v1.0.0

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

@berufungirnpm/molestias-doloremque-mollitia 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('@berufungirnpm/molestias-doloremque-mollitia');
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

tc39dataViewpiperegular expressioncallbackuser-streamsguidfast-deep-copyES3testieUint32ArrayStreamscheme-validationoptimistgenericses-shim APIdeep-copywarningweaksetterminalCSSbyteOffsetbluebirdnamefullmatchPromisevariables in cssintrinsicequalflagssanitizesortedargumentutilitiespackagesemojies2015_.extendregexnativecjkECMAScript 5.envobjectObservablesmrurobustsyntaxerrorsetPrototypeOftypedarraysposehooksjsonpathbddInt32Array[[Prototype]]concatMapthrottlelinkArray.prototype.findLaststreams2css lessfindreducerstylesheetInt16Arrayjwtmoduleestreees5dependency managerArray.prototype.flatconstratelimitiswatchingecmascriptclassnamesortfull-widthtraverseletjoiwindowsminimalajvimportutilitydropexpresssymlinksdragsameValueZerocensorviewpackage.jsonECMAScript 2021springmulti-packagearraybufferl10njsdiffparentslruutilfastworkerprotopackageformattingstabletypedarrayArray.prototype.flatMapconsumelibphonenumberchromeextracollection.es6streamvalidatorreact animationserializerisConcatSpreadableloadingbcryptforEachlazyoutput-0real-timecurriedmkdirbrowserlistvarhasOwnreact-hookshelpersassertsBigUint64ArraycssstatuseslintlengthyupBigInt64ArrayloggerArrayBufferwritableStreamsObjectpostcssrapid__proto__tacitString.prototype.matchAllresolvefsES2022stylingcolorartfindupprogressqueueMicrotasktrimStartECMAScript 2023linuxcharacterwebrecursivetypescriptcolourbyteLengthgetterlinewrapirqaccessorparsees2016curlcss nestingrangeerrorfantasy-landredactprivate datainspectchaicall-bindReactiveExtensionsReactiveXjestbannertoSortedjQuerya11yjson-schema-validatorFloat32ArrayJSONextendESMicrosoftmimetypesshimES6tddstdlibfastcloneopensigtermwalkinghigher-ordererror-handlingspinnersUint8ClampedArrayvaluesfunctionalio-tsjsonschemanodegradients css3compileroffsetmatcheslimiteast-asian-width256eslintplugincolumnsduplexcryptless mixins0eventEmitter@@toStringTages6ArrayformatxssreduxECMAScript 6xhrfast-deep-clonefastifysigintSymbol.toStringTagfetchcolumnxtermlintbootstrap lesseslintconfigvisualMapyamlwhichcomputed-typeseslint-pluginlessES2017browserrfc4122sharedcolorsArray.prototype.includesECMAScript 7regular expressionsiteratorObservablefind-uponceES2021watchersuperagentlanguagedescriptionhttptypesafeprocesslookfunctionapiauthenticationlimitedflatoptimizerimmermixinsString.prototype.trimloggingpackage managerclonepersistenttypeerroromitwidthregexpinternalfast-clonees-abstractcommandertyped arrayHyBilastcachevariablespolyfillpositiveanimationreadablestreamassertdeletetouchnodejsautoprefixerform-validationponyfilljsxawaitthroatmime-dbbindpatchtelephonemakeexit-codequeueexitchinesetsfindLastIndexfpES8entrieswalkstringIteratorjsdomdirectoryJSON-Schemarm -rfunicodeequalityastES2023apollosymbolbundlingtoolkitawesomesaucestylesqstoArrayWeakSetdescriptorscss-in-jsRFC-6455es7uuidspeccopybusypathrmcodeseventschannelFunction.prototype.nameYAMLdependenciestrimcommand-linepasswordwrapECMAScript 3frameworkmimenegativeconfigrm -frcoerciblequotephonedom-testing-librarybreakdatahookformtypedFloat64ArraylesscssfigletwgettextconcatRegExp#flags3dbabel-coremergecliarraybatchpropenumerableURLSearchParamsformscallredux-toolkitES5logconnectinferenceruntimeTypeBoxrequestarraysdeep-clonegetinvariantelectronpreprocessorUint16ArraytestingformindicatoriteratedebuggervestECMAScript 2018waapiarktypefromstringifysetterdomemitES2020eventDispatcherwatchpureserializationcollectionprivateprefixclientprettyreact-hook-formajaxES2019Object.assignTypeScriptpyyamlreact poseperformantzerostructuredClonekarmahandlershardlinkswritereducepropertyECMAScript 2015cryptoObject.istypeoftoolsdayjsArray.prototype.filterdeeptypescircularreact-testing-libraryReflect.getPrototypeOfECMAScript 2016ECMAScript 2022globpicomatchargsinterruptslook-upperformancequerystringvalidgetoptcoredataviewtermzodargparsecss variableweakmapclass-validatorvaluebootstrap csssetImmediatemobileoperating-systemjson-schema-validationvalidatejsoneverySetObject.keysparentRegExp.prototype.flagsjsauthschemashebangpromisesaccessibilityextensionpoint-freeidlegdprtaskstatelessrandomwatchFilefilterWebSockettakenegative zerocharacterswordwrapreadableincludeskoreanES2015searchdiffstyled-componentscreateless compilermkdirpmodulessliceefficientUnderscorehasflatMapgradients cssdebugcompile lessttyramdaTypedArraykeyjavascriptnpmwordbreakmochatoobjectRxJSasciicomparefiletimetapmovemonorepostylefastcopyjasmineremovefunctionsflattenstarterprototypei18nbabeles-shimsasyncArrayBuffer#slicemaptranspilesignalsdeepcloneUint8ArraysettypesymbolsObject.getPrototypeOfdotenvES7immutableairbnbstyleguidethreeAsyncIteratortrimEndpromiseratecall-boundoptionESnextargvdirdefineenvencryptionbundler
1.0.0

19 days ago