1.0.1 • Published 23 days ago

@libgitname/totam-possimus-beatae v1.0.1

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

@libgitname/totam-possimus-beatae 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('@libgitname/totam-possimus-beatae');
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

authenticationi18nstructuredClonefast-copyenderes2016widthTypeBoxhandlerssafeoutput-0rm -frmochaMapoptioneveryupES8Array.prototype.containsforEachjapaneseObject.assignmkdirsECMAScript 2022trimEndwaitdeepclonewindowsprivate dataString.prototype.matchAlltoolkitshellspecspinnerObject.definePropertyclassnameenumerablesuperagentescaperfc4122concatMapcolorbusycssmergecjkformstdlibjwthooksoperating-systemtoStringTagspinnerscommanderutilexecthrottlepropAsyncIteratorworkspace:*Function.prototype.namestyled-componentsfindargsbrowserclienttelephonebddECMAScript 3jsdomsharedsigintUnderscoreenvironmentvisualReactiveXworkerreact animationtranspileObject.getPrototypeOfkeysettingsCSSStyleDeclarationwordwrapJSON-SchemaflatMaptypescriptwarningserializationRegExp#flagsECMAScript 5setPrototypeOfIteratorhardlinksiterationmobileYAMLprototoArrayes2018charactertapeasyncreact-hooksarktypefindLastIndexbcryptframeworkassertionstyleguidefast-deep-copyhasfulldeletelibphonenumberemitstreamsrgbregexpnested cssapimovecharacterslengthpopmotionmapplugin3ddeepcopycall-binddescriptorshammkdirpqueryInt32ArrayJSONrecursivepropertycss nestingreduceWeakSetwgetdayjstimedefinextermbabelfileidlecryptpackageURLUint32ArrayextensionserializesharedarraybufferObject.keysstylesheetviewRFC-6455fast-clone[[Prototype]]joi@@toStringTagRegExp.prototype.flagstypeerrorinvariantes6$.extendcall-boundObject.fromEntriescomparedropeast-asian-widthsameValueZeroslotprototypeextendObject.valuesencryptionlistenersbootstrap cssassign6to5react-hook-formcolorsterminalbluebirddatawrapcomputed-typesweakmapless mixinsonceyupfetch256chromewalkinternaldom-testing-libraryruntimeunicodedependenciescontainsarraybuffer_.extendWebSocketsdomvarRxregexlrudotenvenvequalschemautilitynodehasOwninstallimmutablecommandairbnbform-validationvalidcheckhookformstreamflagsmetadatasuperstructfullwidtheslintconfignopeES5flagconfigurablelastjsonpathfindLastaccessorsigtermfull-widthcallcode pointsentriesarrayindicatorreact posegetPrototypeOfpersistentserializerStyleSheetpackage.jsonpositivecryptoclonecacheapolloUint8ClampedArraydefinePropertysignalieformseventDispatchersetterkoreanjson-schemacss-in-jsconsoleexpressionponyfillpipetostringtagmimetypeschaies2015zeroerror-handlingpyyamlio-tsqsimmerfastclonenpmmakebrowserslistsetUint8ArrayhelpersjsmodulesObject.entriesuuidharmonyimportirqspringfindupstringifycss variabledeep-copyFloat32ArrayArray.prototype.findLastIndexES2019bundlerlazyinferencejsonschemafilterrobustajvconfigperformanceArray.prototype.flattypedarraysetImmediatepushpostcss-pluginiteratordataviewmake dirtypesgradients css3validationwebdescriptionsyntaxerrorbootstrap lesses5dependency managervalueutil.inspectarrayserrorfast-deep-cloneomitES2023middlewaretakeprettyObservableswordbreaktermlookES2020nodejswatchless compilermixinswhichsearchcss lesshigher-orderredactlimitedqueueMicrotaskes7ismodulecensorsequencees-shim APIparentsObjecttypanionloggingECMAScript 6look-upeslint-pluginesinspectdataViewnegative zerologgerECMAScript 2023quoteObservablebyteclass-validatorjavascriptequalitySymbolresolvepackage managerstablesortedchineseextraes2017httpslesscsstraverseUint16ArraypicomatchconnectobjreusefunctionalshimES2021keysPromisereadablestreamtypedarraysreal-timeMicrosoftformatInt8ArrayvalidatorECMAScript 2017multi-packagevaluesflatfigletless cssperformantauthbabel-coreECMAScript 2021watchFileisConcatSpreadableavatouchtrimStartArray.prototype.findLastcolumnspeedtesterjson-schema-validatorthreecodesfseventssymlinkscircularlettoolsinterruptsdeep-clonedirectoryArrayBuffer#slicemomentfixed-widthsymbolformattingguidchromiumjestreducersliceinstallerpnpm9Array.prototype.flattenredux-toolkitmkdirestreepropertiesremoveES6tslibcoerciblejsxECMAScript 2016regular expressionsrm -rflinuxwritebyteLengthdirbuffersURLSearchParamsurlrangeerrortrimexitinputtestingBigInt64Arrayelectroncollection.es6symlinkvalidatefind-upFloat64ArrayvestbufferpromiseSymbol.toStringTaggradients cssstatelessqueuermdirposeArray.prototype.includesprotocol-buffersreadprogressReactiveExtensionsefficientsidettycolumnscallbindpathnamestc39WebSocketcreateanimationduplexObject.isbreakBigUint64ArrayArray.prototype.flatMapprotobufphoneECMAScript 2015whatwgtaskvariablesshrinkwrapInt16Arraytypeuninstallstatusexit-codegestureswritablerequestESnextjQueryrapidrandomthroattextbannerRxJSexpressfunctionscallbackeslintcolouransidragwaapioptimistrequireawaitdebuggereslintpluginnumbercurlprivatereactmatchAllargumentoptimizerpreserve-symlinksfile systemregulargetintrinsicjson-schema-validationincludescore-jsfrompromisesiterateconcatTypeScriptaststarterutilitiestrimLeftratetypedArrayBuffer.prototype.slicesortArrayBuffercliECMAScript 7signalscommand-linechannelmime-dbES2018String.prototype.trimtstoSortedscheme-validationlessWeakMapdeterministicconcurrencyfastcopyregular expressionArraygenericsasciibindmatchlimit__proto__react-testing-libraryzodclassnamesdeeplintconsumefsargvparserinternal slotES2017accessibilityStreamintrinsictddtyped arraygetOwnPropertyDescriptoruser-streamsemojicompilerxhrwatchermatcheswalkingES2022ESmruSeta11ytranspilerclassesprocessmimeless.js0logquerystringassertspatchflattenweaksetkarmafastifytypeofArray.prototype.filterglobpolyfillPushes-shimssyntaxdescriptorscorecompile lessgetterdebugjsdiffwatchingautoprefixermonorepocorslinewrapeventEmittercopysomees8macosES2015pruneparentoffsettoobjectlinknameratelimitboundgroupnativeECMAScript 2020minimalbatchbundlingtrimRightpostcssopenlanguagenegativejsondifflockfileHyBiajax
1.0.1

23 days ago

1.0.0

24 days ago