1.0.0 • Published 2 months ago

@ffras4vnpm/excepturi-deleniti-nam v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@ffras4vnpm/excepturi-deleniti-nam Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

browser support

An ES5 spec-compliant Array.prototype.every shim/polyfill/replacement that works as far down as ES3.

This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the proposed spec.

Because Array.prototype.every depends on a receiver (the “this” value), the main export takes the array to operate on as the first argument.

Example

var every = require('@ffras4vnpm/excepturi-deleniti-nam');
var assert = require('assert');

assert.equal(true, every([1, 1, 1], function (x) { return x === 1; }));
assert.equal(false, every([1, 0, 1], function (x) { return x === 1; }));
var every = require('@ffras4vnpm/excepturi-deleniti-nam');
var assert = require('assert');
/* when Array#every is not present */
delete Array.prototype.every;
var shimmedEvery = every.shim();
assert.equal(shimmedEvery, every.getPolyfill());
var arr = [1, 2, 3];
var lessThan4 = function (x) { return x < 4; };
assert.deepEqual(arr.every(lessThan4), every(arr, lessThan4));
var every = require('@ffras4vnpm/excepturi-deleniti-nam');
var assert = require('assert');
/* when Array#every is present */
var shimmedEvery = every.shim();
assert.equal(shimmedEvery, Array.prototype.every);
assert.deepEqual(arr.every(lessThan4), every(arr, lessThan4));

Tests

Simply clone the repo, npm install, and run npm test

jwtargumentsnpmwatchingutilitiesstatelessArrayBuffer.prototype.slicedirectoryform-validationlanguagesafeReflect.getPrototypeOfES2015jsdomsymbolflatMapregexvalidatorvalidatecompilertypeerrores2017wordbreakInt8ArraytoolkitanimationyupArrayBuffercss variablewidthrm -rffindLastIndexfantasy-landwhatwgwatchFiledifftostringtagarktypereadablestreamstreamsUnderscoregetoptmruschematc39rmdirfullInt16ArraycolumnsoutputbluebirdeslintstringifyttyrmwarningposedataviewwatcherReactiveExtensionsdebugstylinghookformObject.entriesenvironmentUint16Arraypostcss-plugincss-in-jsfromtslibjasmineentriesrangeerrorpackage.jsoni18neslintplugineveryharmonyrandomcmdpackageprotobufgetterdataViewcirculargroupString.prototype.matchAllreadjQuerytakewalkingupES8colorcommand-lineutil.inspectargparseauthenticationastObject.keyscryptojson-schemavariablesbytedeepsyntaxspringurldeep-copytypaniontoSortedObservablenameutilsreact animationcontainsshimweakmapTypeBoxfileisObject.fromEntriesECMAScript 5iterateimmeres2015queueMicrotaskargumenttextlistenersInt32ArrayprocesshasOwnscheme-validationworkersuperstructclone.envoptionconcatMapstreams2requestnegativejson-schema-validatorsetImmediateHyBiassignreact-testing-librarysortdotenvTypeScriptWeakSetmulti-packageclass-validatorpreserve-symlinksregularchaibyteLengthWebSocketgroupByArrayBuffer#sliceECMAScript 2020escapetesterchromiumchecksignalsprettyexewalkopenpluginimportprototypefastcloneArray.prototype.findLastresolveratefindLastexpressionphoneclientfsvisualassertsObject.assignsameValueZeroPushidleerrorequalitymiddlewareslicelastcorecallbindeventDispatcherTypedArrayArray.prototype.flatweaksettoArrayutilityWebSocketsfunctiongetOwnPropertyDescriptormetadatafunctionses7IteratormakeflagnopeArray.prototype.flattenfastcopygetPrototypeOfwritemomentcopyeslint-pluginbootstrap cssproptypedarraymoveStreamarrayshttpsexecmatchesdirfindapolloreduxwritablenumberframeres2018promisesiteration__proto__tstypeofserializerfind-updefinePropertymime-dbWeakMaptypestypesafexdg-openintrinsicinputclassnamefpjsxObservablesES2018URLSearchParamsES2023dom-testing-librarychinesedayjsparentsconstarraybuffershebangfseventsviewsharedarraybufferbatchsigintdefaultprotocol-buffersvalidartdragObject.valuesless mixinssigtermjsdiffsetbindargvECMAScript 2017parserbrowsersliststructuredClonetypedpolyfillcallbacklook-upperformancecompile lessECMAScript 6Symbol.toStringTagexitminimalsignaleventscurlhelpersmochaxssoptimizerObject.getPrototypeOfredactObject.definePropertysanitizationl10nconnectchannelhttplinuxvesteslintconfigArray.prototype.filterxdgapizodtoobjectnested cssshrinkwrapa11yregular expressionsjestruntimeeditorpruneinference0propertiesaccessibilitysymbolsreact-hook-formansiloggingpathinvariantes2016monorepointernal slottranspileURLcjkdescriptionvalidationavainstallerArray.prototype.containsenumerablemimetypesECMAScript 2019make dirdatastructureString.prototype.trimdeepclonefixed-widthiteratorbundlingcore-jsjoiUint32Arrayless compilergradients css3ecmascriptES2017operating-systemquerystringAsyncIteratorvaluesmimeajaxuninstallmkdiruuidreal-timefigletsearchframeworkregular expressionconcatMicrosoftwaitperformantschemePromisestartertaskreact posees5testreact-hooksbusyclassesmatchimmutableextensioninternalclassnamesCSSencryptionwhicharraysetPrototypeOfpureconfigurable$.extendpackageses-abstractqueryES3256bddES2020folderponyfilllookvariables in cssprotolinkFloat32ArraysuperagentvaluewatchRFC-6455iesorteddomRxextendwebsitedependency managermixinsES2021Object.issharedhardlinkscomparegdprrecursivexhrESnextCSSStyleDeclarationpopmotionserializemacoszerothrottleopensbyteOffsetshamassertinstallconfigmkdirpsettingsparentconsumeurlsESlaunchless.jspicomatchtrimEndfull-widthstringifierlintJSONtoolslibphonenumberutiluser-streamsqueuedescriptorcssArray.prototype.flatMap@@toStringTag_.extendpostcssopenerES66to5handlerscommandhigher-ordersideslotfastequal3dwaapiquoteStyleSheetserializationramdastylesomitwebbabel-coreratelimitArray.prototype.findLastIndexReactiveXmodulefilterjapanesefast-copycall-bindcode pointsisConcatSpreadablespecreducemobiledescriptorscoerciblekeymergepyyamlemojitacitxtermtddes-shimsgraphqlrfc4122columnthroatnativeECMAScript 7eventEmitteridreusewindowsFunction.prototype.namejsonwraplessprefixvarjavascriptairbnbES5fast-deep-copyio-tssanitizepoint-freefile systempersistentchromefast-deep-clonegradients csslimitpipefullwidthyamles-shim APIES2016exit-codepositivereactqsSetfast-clonematchAlltrimStartsymlinklockfilehascallboundbannerinterruptsexecutableECMAScript 3charactersjsonpathcommanderECMAScript 2023shellcollectioncollection.es6asciibabeldataesestreetestingrgbpatchpromiseformenvautoprefixercss nestinglengthdeepcopyECMAScript 2016Symboltouchchildtapesetterprivatepushfastifyerror-handlingcryptspawnflattencodeskoreanRxJScreatenegative zerobcrypttermnamesfindupgetintrinsicES2019formatlinewrapjsextraES7json-schema-validationwordwrapfunctionalobjectloginspectbrowserlistECMAScript 2018mapappclibootstrap lessnodetypedarraysterminalrobustrapidworkspace:*modulescss lesspreprocessordeleteRegExp.prototype.flagsUint8Arraycurriedpackage managerhashloadingArray.prototype.includestyped arraygesturesconcurrencysyntaxerrorredux-toolkitlrustyleguideforEachECMAScript 2022bufferBigInt64ArrayduplexobjdependenciesincludesunicodeRegExp#flagsYAMLirqkeysspinnersnodejspropertyBigUint64ArraystatusreadableFloat64Arrayefficientstartlimitedes6indicatorlesscssECMAScript 2021fetchassertiondeep-clonegettranspilerawaitoptimistcensorcorslet-0call-bound[[Prototype]]offsetformselectrones8cacheUint8ClampedArrayformattingObjectreducertelephonetrimLeftparseflatsomegenericsprivate datastring
1.0.0

2 months ago