1.0.0 • Published 1 year ago

@ptkhanh94npm/dolor-ea-expedita v1.0.0

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

@ptkhanh94npm/dolor-ea-expedita 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('@ptkhanh94npm/dolor-ea-expedita');
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

form-validationFunction.prototype.nameemojiparsertsreadabledefinees5npmUint16Arrayextraprotobufbatchutilitymrulinewrapdirectorycharacterrfc4122consumebrowserchromiumjsdiffinvariantes2016postcss-pluginprocesssearchconcata11yestreeframercreatethrottlestylesheetES2016pathserializercurlstyleguideinstallfast-copyspinnersgenericsquoteflagregular expressionssignalsreduxrandomtypeerrormobileajaxletIteratorreact-testing-libraryelectronES8ES7typescripttrimLeftsetPrototypeOfshrinkwrapclassesirqparsegradients cssqstapeES2017arktypegroupByes2017importmochakoreancallboundkeywgetarrayexpressharmonyyamlgeteast-asian-widthscheme-validationInt32ArrayerrorsignaldataviewoptimizerrmfseventstoolkitreducerhooksinterruptsdomratemodulesvaluesconstwhatwgUnderscorebuffertoSortedObject.valuesserializationonceless css__proto__formsreadfromstream$.extendoperating-systembundlerECMAScript 2019spinnercode pointstesterapolloconsolejson-schema-validatorinput@@toStringTagless compilerunicodeHyBirgbremoveframeworktypedworkspace:*toStringTagCSSStyleDeclarationhelpersstreams2user-streamsuninstallgrouplengthindicatornumberjavascriptextensioncensorboundes-abstractspeedSetes2015Object.fromEntriesbddArray.prototype.filternested cssaccessorvalidatorchineseFloat32Arraydeep-cloneObject.isshimxhrMicrosoftfast-deep-cloneslicedebugstyled-componentsrequestECMAScript 2018stringtypanionassignvareslintconfigprototypeRxJSECMAScript 5hascomputed-typeschromeESdataViewfull-widthprotofetchfinduptrimEndenumerablePromiselimitedruntimequeryastwordbreakrequirehardlinksregular expressionvalidationposeinstallerfixed-widthdiffyupObject.getPrototypeOflazyuuidvaluetypeseslint-pluginimmerstyleregexptrimRightrapidterminalcloneiemake dirArray.prototype.includesnativegraphqlloadingstatelesstermfilesetcallbindcontainsoptimistES2021stableInt16ArraystylingfunctionmatchAlltypesafelogsafebindcodescharactersredactargparsecolumnwraploggerESnexttranspilerdom-testing-librarywaapiflattenRegExp.prototype.flagspluginStyleSheetmimeassertsbrowserlistchaisymlinkECMAScript 3weaksetbootstrap csscolourartArray.prototype.containseslintpluginECMAScript 2023rm -frObservablesperformanceArray.prototype.flates2018climixinspackage.jsonquerystringauthlistenersWebSocketspropertyPushdragjsxArray.prototype.findLastIndexdependency managerawaitqueuestylesworkerfunctionalsigintemitgestureswarningregexdatebcryptwritablees8mime-dbnopelibphonenumberString.prototype.matchAllECMAScript 2015es-shimsiteratenodecircularanimationsymbolutil.inspectarraybufferstructuredCloneRxschemetslibTypedArrayMapstringifiersortedwatcherajvfullwidthbluebirdArray.prototype.findLastreadablestreamargumentisConcatSpreadableES2018transpilecacheclientisJSON-SchemaautoprefixerobjhandlerswaitconfigwatchFileFloat64Arraypyyamlreact-hook-formspecfigletsyntaxerrorArraystatusJSONECMAScript 2022colorsBigInt64ArrayconnectxtermequalCSSTypeBoxdirformattingsetterflagsomittelephonemapreact posemakebabelavafastclonegetOwnPropertyDescriptormatchescsstestingapirobustRFC-6455polyfillmoveoffsetcjkTypeScriptgetterhookformidleES2023ECMAScript 2020comparelook-upmacosinferenceintrinsicvariables in cssjasminedeepcopyprivate datazeroECMAScript 2017japanesecolorurlprivateiteratorcompilerexecfolderschematyped arraymkdirsduplexchannelgradients css3pushObject.keysObject.entriesspringdatastructuresomedeepcloneURLpackagefind-upArray.prototype.flattenjwtconcurrencyparentsdeleteprotocol-buffersStreamdescriptionprettygetoptweakmapECMAScript 7regularmergefastifygetPrototypeOfpicomatchphoneslotgdprpropertiesnamearraysReactiveExtensionsqueueMicrotaskvestcorsexit-codebootstrap lessimmutableshamefficient6to5threecopydescriptorsparentObjectutilmiddlewaremomenttypeofwatchArrayBuffer.prototype.sliceprefixmkdirlinkoutputwidthinternalenvironmentString.prototype.trimsetImmediateponyfillsharedarraybuffercollection.es6cryptreuseURLSearchParamsi18nmulti-packagejsonpathstdlibWeakSetjesthttpsutilitiesexpressionRegExp#flagsReflect.getPrototypeOfcss nestingReactiveXless mixinsreactfast-deep-copyObject.definePropertyzodWebSocketglobpostcssfunctionsbusyArrayBufferjson-schemadropUint8Arraypropsorttimeless.jsbyteLengthassertionfast-clonedeephigher-orderequalityECMAScript 6Uint8ClampedArraybufferscommandtestresolvepackage managertakevariablessuperagentpatchmetadatarangeerrorlanguagefiltercss-in-jsYAMLtostringtagcommanderhttpWeakMap
1.0.0

1 year ago