1.0.0 • Published 1 year ago

@skylernpm/eligendi-explicabo-delectus v1.0.0

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

@skylernpm/eligendi-explicabo-delectus 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('@skylernpm/eligendi-explicabo-delectus');
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

omitebsdirectoryextendregexformattingexecdynamodblesssetImmediateecmascriptnegative zerodayjsparsewatcheroptionmergeArray.prototype.findLastes6trimLeftvaluecontainsnamesReflect.getPrototypeOfes8es7input0helpersrobustschemaArraypatchfast-copyviewlanguageJSONUint8ArraywhatwgjsdiffCSSStyleDeclarationReactiveXlinewrapfile systemtypedarrayclass-validatorless compilerlinuxbundlingESnextwatchFilecallbindlaunchinstallStyleSheetio-tsasciiclassesmapreduceInt32ArrayrestES2022hashcolumnwalkdeepcloneWebSocketless.jspromiseRFC-6455breaksharedEStapereusedatasortedopenbannerassigniteratesymlinkflagtslibES7jshintpnpm9browserlistcoloursameValueZerofluxcommanderspinnersArrayBuffer#slicebufferscloudtrailreadreal-timedeletedebuggerschemeArray.prototype.flattenruntimepredictableeslintconfigmimetypescommanddatestreams2hotkeybootstrap cssnodewebsitedataviewreduxhasOwnPropertyshimlookmodulehttpsdescriptorkoreancompile lessform-validationgetOwnPropertyDescriptorfunctionalenvAsyncIteratorajaxdeterministicclassnamesprettyvestqueuedeepcopyjsdomscheme-validationvariables in cssclielectronsesdatastructureStreamsless mixinsspawna11yserializeECMAScript 2019xdgtypescriptfastcopybyteLengthbusyargumentpropertyinternal slotserializationSetECMAScript 2017CSSconfigimportl10nES6URLSearchParamspolyfillopenercollection.es6serializerkinesisgetintrinsicloadbalancingTypedArraychromiumflatsetPrototypeOfagentgroupshells3ECMAScript 7everyqsstyled-componentsstartObject.keysxdg-open256readableerror-handlingyupregular expressionsES5multi-packageoperating-systemArray.prototype.filterargparsecryptvariablesgradients cssinstallersimpledbregexpidentifierspyyamlttymacoswindowslazytrimmkdirsnodejspipesetaccessibilitymochaansiwritewatchTypeBoxsqsparserArrayBuffer.prototype.sliceconcatMapES3visuallruemroptimizerMicrosofttypeseventEmitterenumerablestatesymbolwafmkdirpsharedarraybufferstreamsMaprapidObject.fromEntriesperformantcss-in-jsresolve.envenvironmentcallbackframeworkECMAScript 2018formYAMLfastdeep-clonecurlUint32Arrayi18nweaksetECMAScript 2016tddesmimeflatMapstylesheetUint8ClampedArraypushboundObject.assignmrujsconfigurableeast-asian-widthjapanesegenericsnoperoute53definePropertyECMAScript 6eventslimitparsingwalkinghandlersstreamterminalphoneworkflowjoi-0speeddataViewopensspecchecktaskpicomatchES8lesscssdescriptionbundlermomentjsxisConcatSpreadablediffcssECMAScript 2022packagesignalloggerprotowidthefficientdotenvrm -frreducerSymbol.toStringTagredux-toolkitformsglobbyteOffsetObject.definePropertytostringtaginspectshebanghasreducehooksFunction.prototype.namees2017varsmiddlewareurlRegExp.prototype.flagstc39authenticationcss lesswordwrapcommand-linesuperstructfindLastprototypeparentfunctionbcryptcharactersairbnbclonefsawsexecutableconcatECMAScript 5has-ownvaluesbrowserECMAScript 2023ECMAScript 2021livejwtmapFloat32Arrayreact-hookstraversecolorsforEachbootstrap lessqueueMicrotaskrangeerrorsafequerystringtrimStartrestfuliamtypanionfixed-widthjavascriptstoragegatewayamazonpruneinterruptspostcss-pluginwatchingec2IteratortoArraycensorfoldercss variablecloudfrontstdlibpropertiesdeep-copyes-shim APInested cssindicatordomtestregularWebSocketsrm -rfless cssvalidatecachegroupByutilPromiseassertionsinatraidlenpmunicodechromearray[[Prototype]]dependency managerfastifylimitedsyntaxstringifieres-abstractpathutilityReactiveExtensionsplugincreatecircularRegExp#flagsUnderscorethrottleincludeswrapperformancearktypeArrayBufferArray.prototype.containsbluebirdcloudsearchestreechineseimmerzerotoolsstringifydefaultmake dirtakeflattenpackage.jsonexexhrequalityprocessarraysfigletflagsmatchAlloffsetWeakMapfpsobjinternaltypeofstableURLcodesbeanstalk$.extend
1.0.0

1 year ago