1.0.0 • Published 1 year ago

@bobyzgirlllnpm/nulla-ipsam-dolor v1.0.0

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

@bobyzgirlllnpm/nulla-ipsam-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('@bobyzgirlllnpm/nulla-ipsam-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

nodejses-shimsprefixkarmaUint8ClampedArrayes2017ES2020flagpredictableparserassertiones5valuesArray.prototype.flatMapdataviewfetchlibphonenumbermake dirspeedmomentECMAScript 2023serializationoptimistformatgradients cssprotopostcss-pluginUnderscoremergeregularschemaparsecallbindless mixinsbundlerform-validationRxjsxawslocationcall-boundisfastcloneES2022calllanguagematchAllutilwaitdeepclonetc39Int16Arrayairbnbinternal slotECMAScript 2015privatedommaketimefindcloudfront-0efficientendpointlimitbyteLengthmulti-packageestreestablewhichmobilecloudsearchframeworkArray.prototype.flatpostcssemitwatchjasmineES2018ansiArrayBuffer#slicecryptscheme-validationFloat64Arraytslibstreams2nopeautoscalingexecsetPrototypeOffigletespreedeep-copyfseventsfolderES2019connectxtermgetHyBiRxJSaccessorURLlesscssphoneglaciercallboundhardlinkssharedcommandertrimStartfindLastimmutablecopyES2021mimetypesasyncsesreducerasciigdpragenteventDispatcherwidthES2016ES3dependency managerBigUint64ArrayassertsfindLastIndextypedarraycachehasduplexlinkkinesisgroupstringifywalkingObservablees7arraybufferelasticacheloadbalancingmapreducei18nmime-dbsuperagentprivate datakoreanowncss less__proto__corsdescriptorstaskES5datastructurequerycodesjsdomInt8ArraytestingviewlazyMapajvsyntaxerrorarraysECMAScript 5s3equalArray.prototype.containsES6compile lesscoreECMAScript 2019immertraverseCSSSetless.jsUint32ArrayargumentSymbol.toStringTagJSONvalidrobustie256redirectregexnumbersetImmediatelrufluxtypeofgetPrototypeOfreadablestreamobjesprettyeveryassertlograpidstylesECMAScript 3chaifast-clonepropertiespasswordrangeerrorcloudformationindicatorroutetrimincludesnpmTypedArraycolumnreadableeslintpluginObject.valueshasOwnPropertywriteextraArray.prototype.flattentoobjectsuperstructcharacterbddutilitiespackageWeakMapjstypesafeart@@toStringTagflattendefinePropertyreduxes8symlinksclidateutilitymappackage managerconcatMapopenerrortyped arrayES8react-hooksomitqueueMicrotaskprototyperm -rfconcurrencysearchchromiumeslintconfiginputsharedarraybuffercontainsArray.prototype.filtertermstringfunctionalObject.assigndeterministicstringifierhttpcharactersArrayBufferrmdirremoverfc4122code pointsbrowserslistcloudtrailcommand-linefullwidthgettercss variablergbTypeBoxloggingstructuredClonethroatassignbyteOffsetiterationtostringtagnegativebatchformattingprogressECMAScript 2016elmintrinsicsettingsclassnameless compilerdayjsworkflowlimitedJSON-SchemametadatajsdiffargvvalidationfpssimpledbtypetrimLeftsnsmatchvestlengthcollection.es6tsruntimerm -frECMAScript 6ECMAScript 7Object.getPrototypeOfdescriptionconfigurableslicewhatwgfind-upzodeast-asian-widthjsonpathgetintrinsickeysfileReflect.getPrototypeOfhasOwnes6Array.prototype.findLastenvcensorsidestyled-componentsqueuetapinternalclassnamesdirclassesYAMLurlstylingconfigrateoffsetwrapbindenderbcrypthigher-ordercallbackparentstylesheettypanionwordwrapconsoleclass-validatorlintsafeswfObject.iscompilerio-tsshelljavascriptarrayString.prototype.trimflatMapreact-testing-librarydeep-cloneESnexteventEmittermkdirspolyfillreactkeylook-upeventsavanativerandomclonermecmascriptl10njapaneseproxycomputed-typesimportclientpatchshebanghotvisualUint8Arrayloggerfixed-widthPromisefunctionObjectreadreplayPushauthcheckchannelgroupBybluebirdmimeworkertoolsArrayBuffer.prototype.slicestdlibnested cssrdstypedarraysargparsepicomatchhas-ownfast-copygetoptbuffersArray.prototype.includeseslint-plugintextxhr_.extendURLSearchParamsString.prototype.matchAllvpcboundautoprefixergetOwnPropertyDescriptortypeerrorsymbolnamesmoduleswritableECMAScript 2020dotenvformTypeScriptmixinscall-bindMicrosoftlessmochapushdynamodbfulltoArraystreamregular expressionscomparereusetypedperformantchrometoolkitpositiveapolloroutinginferencewordbreakperformanceyupslotthrottletypeslookexpressionquerystringpathcolorajaxeslinta11yunicodepromiseses2018persistentauthenticationiamfast-deep-copystreamsstateES2023tddbusyebswatchFileargsroute53$.extendsyntaxregular expressionArray.prototype.findLastIndexidleUint16ArrayweaksetdeepprotobufqsObject.fromEntriesuuidencryptioncurlwgetspinnersmkdirforEachdropECMAScript 2021symbolsrequestdeepcopyisConcatSpreadablestartergenericsarktypeshrinkwrapSymboljwtshamES2015storagegatewayfast-deep-clonepackage.jsonjoicjkdeletereact-hook-formelectronsequence.envbrowsercore-jsdom-testing-libraryworkspace:*watcherenumerablezeroes-shim APIterminaltesterObject.keyspromiseidec2directorypreserve-symlinkspreprocessorresolvebreakflatlistenerswafastconsumedebugparentsvariables in cssvalidatepropRFC-6455someentriesStreamsfilterparsingbeanstalkcryptospinnerRegExp#flagsmrudebuggerbootstrap cssstyleless cssserializefindupsqsinspectoutputbundlingutil.inspectflagsnamehookssymlinkoptionchinesepluginObject.definePropertyfull-widthIteratorFloat32ArrayoptimizerescaperatelimitlockfileReactiveXemojisortcreateCSSStyleDeclarationcss-in-jsvalueinstallcss nestingwarninghookformenvironmentECMAScript 2022toSortedECMAScript 2017telephonemiddleware0buffertouchpropertyminimales2016columnsjQueryequalitybyteglobfastcopytrimRightformsquotegradients css3circularrequirebrowserlistWebSocketFunction.prototype.namegraphqltoStringTaguninstallextensionStreamES7fromfastifydatasetreduceES2017pnpm9bootstrap lessmkdirpmonoreponodestyleguidefile systemhttpsconcatsameValueZeroshimttymoduleapiaccessibilityguidtestobjectcloudwatchcoerciblefsspeclinewrapsortedes-abstractschemestatelesscolorsEStakeponyfillhelpersdiffdependenciesiteratees2015json[[Prototype]]recursivewalkexpressAsyncIteratoremrnegative zeroreal-timeInt32ArrayfastpackagesECMAScript 2018awaittrimEndwebWeakSetRegExp.prototype.flagsStyleSheetextendcssReactiveExtensionsjestArrayliveelbcolourprotocol-buffersbannerinstallerindescriptoroncematchesWebSocketsfunctionspipewatchingObservablesweakmapawesomesauceinvariantvariablesmoveprunecommanddefinedataViewredux-toolkitBigInt64ArrayObject.entriesregexpimportexportiteratorsetteruptypescriptlasttapecollectionredactamazonhash
1.0.0

1 year ago