2.0.5 • Published 6 days ago

@teamteanpm2024/sapiente-occaecati-dolor v2.0.5

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

@teamteanpm2024/sapiente-occaecati-dolor 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/sapiente-occaecati-dolor');
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

RFC-6455user-streamscode pointsweaksetstreamnativeObject.valuestypedarraysisConcatSpreadableargvcomparenodejsloggingecmascriptguidserializewalkargumentECMAScript 2021gettervaluestypedqueuewrapUint8ClampedArrayjson-schema-validatorstatusscheme-validationrapidwarningcomputed-typesflatcolumnname256fantasy-landless mixinsserializationtypedarrayES2022json-schemainternalkarmajsutilitynpmreact posemixinsjwtspringmapreducees2018tc39UnderscoregenericswriteeslintconfigdragES7optioneveryimmutablewritableFloat32ArrayjsxInt8ArraygetsymlinksincludesthrottleObject.entrieslockfileObject.isloadingsigintenumerablewatchFiletrimStartcompile lessshimtypesafecore-jsmimeYAMLpipeserializer6to5interruptses8watchingcloudsearchio-tswgetemojiReactiveXvalidationUint32ArraybusyESnextindicatorgdprclilanguagemulti-packagesameValueZerocopyUint8ArrayArrayBuffer#slicesyntaxerrorreadArray.prototype.filterstyleguidegetintrinsicregular expressionstructuredClonefind-upWeakMapauthenticationinspectprivate datapropmodulebootstrap cssECMAScript 2022testcloneextensionarraybufferES2020shamelbconstelectronStyleSheetfromprunepositiveaccessorfastifyescaperedux-toolkitcheckchromiumdom-testing-libraryInt32ArraykoreanURLSearchParamsartES2016ECMAScript 2019colorsES8xhrlistenersclass-validatorairbnbschemequoteWebSocketwafreact-hook-formTypeBoxshrinkwrapes5ES6termtyped arrayreuseObject.fromEntriesratelimitObject.assignwordbreakpreprocessorec2es6css-in-jstypeagentURLflatMapirqi18nhigher-orderconcatMapreact-testing-librarysnstoStringTagsetImmediatecolourdirectorypyyamlvpcwatchhardlinksstringtrimRightclassnamefastclonecsstslibbrowserlisttestingparentsdynamodbtoArraysignalstypeofl10nbootstrap lessendermatchlastajvcallvalidatemkdirppnpm9protoconcatparserpostcss-pluginpoint-freepostcsscss variableautoprefixerPushoperating-systemqsparentextrametadataawesomesauce3dparsingvariablesvalid$.extendtapasynccjkreact animationsharedredactrdstelephonees7zodregular expressionsFloat64ArraySymbol.toStringTagiterateprotobufJSONfile systemfastcopydotenvdeepcopylesspackage.jsonless compilerenvironmentimportexportES2021fullwidthECMAScript 6nodedescriptionflagsymbolsa11yless.jsansiconfigbcryptcloudfrontES2015cryptoshebang.envstoragegatewaychinesereact-hookscharactersqueueMicrotaskconsumerm -frassertsbalancedeslintsomeReflect.getPrototypeOfsymboljoiawaitapithreetraverseObjectassertioncloudwatchfpseast-asian-widthschemastarteriamMicrosoftjsdomhasformatdependency managertrimLeftes2016HyBinegative zerobundlertaskharmonypicomatchmodulesnumberconsolecharacter__proto__eventsimmerbluebirdwhatwglazyes2017walkinglibphonenumbercircularxtermpropertiestypeerrorprocessdomexecjapanesecolorRxJSmomentvaroptimizerformmobilesetzeroeslint-plugintouchendpointspecieregexpmakefunctionsJSON-SchemanamessetPrototypeOfpopmotiontostringtages-shim APItesterpushkinesisloggerobjectsanitize
2.0.3

8 days ago

2.0.5

6 days ago

2.0.4

7 days ago

2.0.2

9 days ago

1.0.2

10 days ago

1.0.1

11 days ago

1.0.0

11 days ago