2.11.127 • Published 10 months ago

@patrtorg/asperiores-vel-accusantium v2.11.127

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

@patrtorg/asperiores-vel-accusantium Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ESnext spec-compliant Array.prototype.findLast 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.findLast depends on a receiver (the this value), the main export takes the array to operate on as the first argument.

Getting started

npm install --save @patrtorg/asperiores-vel-accusantium

Usage/Examples

var findLast = require('@patrtorg/asperiores-vel-accusantium');
var assert = require('assert');

var arr = [1, [2], [], 3, [[4]]];
var isNumber = function (x) { return typeof x === 'number' };

assert.deepEqual(findLast(arr, isNumber), 3);
var findLast = require('@patrtorg/asperiores-vel-accusantium');
var assert = require('assert');
/* when Array#findLast is not present */
delete Array.prototype.findLast;
var shimmed = findLast.shim();

assert.equal(shimmed, findLast.getPolyfill());
assert.deepEqual(arr.findLast(isNumber), findLast(arr, isNumber));
var findLast = require('@patrtorg/asperiores-vel-accusantium');
var assert = require('assert');
/* when Array#findLast is present */
var shimmed = findLast.shim();

assert.equal(shimmed, Array.prototype.findLast);
assert.deepEqual(arr.findLast(isNumber), findLast(arr, isNumber));

Tests

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

es5fromtypedarray256ECMAScript 2019containsECMAScript 2017ECMAScript 2021descriptionloadingfiglettypanionwalkingponyfilllibphonenumberappwalkieES2016filteres-shim APIshimmatchesproxypathnodejsthrottleopenerconfigasyncfindLastenderautoscaling[[Prototype]]ec2promisesObjectwordbreakdatastructurejavascriptsqspyyamlspinnerconcurrencystyleguidekinesistypeofserializerfull-widthgetOwnPropertyDescriptoremrECMAScript 5colourfunctioneslintplugines2017parentsbindflagreadhigher-orderfindLastIndexprototapeexeSymbol.toStringTagqueuefunction.lengthfast-copygetintrinsicmimeArray.prototype.flatMaptddpackageECMAScript 2023indicatorenvironmentsettingscolorsUint8ArrayframersyntaxerrorECMAScript 3package managercomputed-typesyupidlelastInt8ArrayredirectmakepositiveUnderscoredeep-clonecensorprotocol-buffersfindfolderObject.entriesvaluejsdompnpm9coerciblequeueMicrotaskperformanceio-tsstoragegatewayMapmochapreserve-symlinkschinesedeep-copylaunchReactiveExtensionsagentpropertydebugCSSStyleDeclarationspawnstreamchromeoptimiststringifya11ydependenciessetterTypeBoxfastcodesreactdebuggermkdirppopmotionsharedarraybufferenumerablecircularspinnerslinteventscallboundJSONloadbalancingdynamodbarraybufferrobustfetchcloudformationstylingfixed-widthECMAScript 7HyBiweaksetawaitgroupByreact-hook-formapistyled-componentsincludesReflect.getPrototypeOfinternalwhichseteventEmitterwaapiastquerystringtextWebSocketdeepcopystringifiersymlinkansicloudfrontcreatehasarrayfast-cloneFloat32ArrayES5cmdefficientnameextendslotreducer$.extendcliinvariantestreeJSON-SchemawrapinrmdirTypeScriptcloudwatchurlUint8ClampedArraystructuredCloneeveryaccessor__proto__lazyWebSocketsawscommandsuperagentgesturesarktypequoteupreadableexpress3dIteratorfile systemawesomesaucevalidationjestmoduletermES2022functionstypeerrorphoneruntimeES2015nativesliceroute53requestclientclonepropweakmapStyleSheetformateslint-pluginstartECMAScript 2018springdataViewstdlibtapconsumeemojirandomnopeopenInt32ArrayuninstallinstallerairbnbSymbolmergetrimRightcalllistenersmetadataasciiqstostringtaglengthi18nObject.keysprotobufArray.prototype.includestoArrayoffsetajvpluginvpchasOwnutilitiesclass-validatorbrowserlistfsES7stylefullwidthstreams2Function.prototype.nameicushamdeeplruajaxhardlinksexecrapidwaitremovemulti-packagecompareshrinkwrapBigUint64Arrayreact animationsortjapanesecolumnshelperssesutil.inspectnodetsthroatwafES2023entriesworkerjswebsetPrototypeOfECMAScript 2022scheme-validationcss-in-jsonceminimalInt16ArrayidentifiersES2020performantcollectionmapreducewebsitepushxdgwgetwarningextensionautoprefixertrimEndstylesapollofast-deep-copyObject.getPrototypeOfcopyidPushlogloggermkdirspropertiesUint32ArraycharactersenvironmentsECMAScript 2015-0streamsreduxAsyncIteratorcharactercore-jsnegativepackage.jsonmonorepographqlES2017dataglobcloudsearchtoolsrmObservablenpmsymbolssameValueZeroformattingUint16ArraylanguageyamltoobjectconcatownloggingdayjsprettyquerybddassertiontoolkitdefinePropertyArray.prototype.findLastIndexsymbolhas-owninstallglobalszodArray.prototype.flatregular expressions@@toStringTagchildYAMLSetworkspace:*snsnegative zerokoreanintrinsiclimitedArrayBufferelasticacheparsingtoSortedObject.fromEntriesmovehookformrangeerrorhelperkeyrm -frrgbWeakMapresolverfc4122call-boundopenscallbackgetoptgdprjoiregular expressionvalidatedeterministicassertspersistentecmascripteditorfilebusyregularextraelectronhasOwnPropertyunicodelimitstarterString.prototype.matchAllterminalObservablestypedarraysformsrequirecsspostcsstelephoneStreamreact-hooksescapeES2021wordwrapArray.prototype.flattenflatMaptyped arraycolumnES2018redux-toolkittakebundlerreact posebuffersconvertinferencegetdefaultschemefunctionallinewraphashpostcss-plugininternal slotimmercloudtrailRFC-6455ebs.envexpressionesreact-testing-libraryglobalmobiledeepclonedependency manageres-abstracterrores2015asserttypedsyntaxprocessconfigurablegroupcurlURLArrayBuffer#sliceartbrowserslistvariablesiamreadablestreamtypesafeobjecticonvisConcatSpreadableequalityformarraysfpsArrayURLSearchParamstestingmomenttraverseprivate dataspeces8es2016sortedtouchECMAScript 6writableeventDispatcherdescriptorsArray.prototype.filtergetterreuseTypedArrayargumenttypesECMAScript 2016compilertimepatchjsdiffframeworkargparsebyteOffsetfastifytslibmake dirdomsafesharedwidthsetImmediatejsxfastcopyimportexportargumentsparsertaskcommanderBigInt64ArraymatchMicrosoftdeletemime-dbconcatMapimmutableflagsbytevarshttpbannerjasminetoStringTagcallbindgetPrototypeOfreduceRegExp.prototype.flagses-shimsserializebundlingstatelessrdstrimLefthooksArray.prototype.findLastcryptoinspectFloat64ArraylookWeakSetttyes2018collection.es6jsondirES8bufferjsonpathlook-uppipeprototypes3objbrowserwriteprefixRegExp#flagsmatchAlltypeflattrimStarteslintconfigequalfastcloneserializationtestprogressmodulesbreakcorereal-timeargselbanimationuuidxtermrecursivedefinedataviewsimpledbchannelpackagesjshintflattenhttpsiteratorstringkarmaenvparentES2019dropl10nboundprivatezeroutilcolorsequenceObject.definePropertyforEachgenericswhatwgES6output0inputurlsassignObject.isespreethreeObject.valuestc39promisedirectorykeysES3batchbeanstalkeast-asian-widthArray.prototype.containsschemashebangRxregexoptimizerregexpcharsetguidString.prototype.trimjQueryiterationdragduplexglacieres7xdg-opendiffshellbluebirdmrubyteLengthcommand-lineeslintdotenvavamaplocationvalidchaiECMAScript 2020rm -rfpolyfillrouteomitnamessymlinksaccessibilityposevisualvestcode pointscheckvaluesswflockfileroutingamazonxhrfind-upStreamsratestableparseutilitysearchform-validationconsolespeedoptionPromiseReactiveXtester_.extendendpointworkflowcachepicomatchESnextObject.assignprunemkdiriteratecall-bindRxJScjknumberfast-deep-cloneexecutableargvemitimportredacttrimratelimitdescriptor
@patrtorg/doloribus-aperiam@patrtorg/dolorum-blanditiis@patrtorg/dolorum-quisquam-molestias@patrtorg/eaque-tempore-temporibus@patrtorg/ducimus-hic@patrtorg/eaque-dolorem-iusto@patrtorg/enim-culpa@patrtorg/enim-quas@patrtorg/est-corrupti@patrtorg/error-expedita-rerum@patrtorg/esse-ut@patrtorg/esse-occaecati-quos@patrtorg/ex-iure@patrtorg/expedita-eaque-at@patrtorg/fugiat-beatae-quas@patrtorg/fugiat-perspiciatis@patrtorg/fugit-cumque@patrtorg/illo-saepe@patrtorg/hic-facere-ratione@patrtorg/itaque-beatae@patrtorg/iste-sunt@patrtorg/iure-at@patrtorg/modi-aut-dolorem@patrtorg/modi-officia-iusto@patrtorg/nihil-at@patrtorg/nihil-vero-ipsa@patrtorg/pariatur-sapiente@patrtorg/quia-laborum-porro@patrtorg/qui-dolore@patrtorg/quidem-dolore@patrtorg/qui-omnis-voluptates@patrtorg/similique-nam@patrtorg/sed-laudantium-nemo@patrtorg/sapiente-sed-eius@patrtorg/sed-veritatis-placeat@patrtorg/soluta-quo@patrtorg/nisi-perferendis@patrtorg/perspiciatis-possimus@patrtorg/quo-cupiditate-sit@patrtorg/saepe-tenetur-iusto@patrtorg/repellendus-ex@patrtorg/repudiandae-dolore@patrtorg/repellat-quam@patrtorg/tempora-quas@patrtorg/tempore-cumque@patrtorg/maiores-adipisci-maxime@patrtorg/nostrum-beatae-a@patrtorg/nobis-nobis@patrtorg/quas-sed-id@patrtorg/reiciendis-doloribus-officia@patrtorg/soluta-numquam@patrtorg/soluta-et@patrtorg/neque-consectetur@patrtorg/neque-voluptatem@patrtorg/odit-facere@patrtorg/officiis-qui@patrtorg/odio-ratione@patrtorg/officiis-dolorum@patrtorg/quos-hic@patrtorg/similique-vero-sapiente@patrtorg/sit-ipsam-dolore@patrtorg/tempora-impedit-dolore@patrtorg/porro-voluptates@patrtorg/quod-asperiores@patrtorg/tenetur-aut@patrtorg/tempore-labore-mollitia@patrtorg/totam-accusamus@patrtorg/veritatis-vel-amet@patrtorg/occaecati-reiciendis-reiciendis@patrtorg/pariatur-repellendus-aspernatur@patrtorg/quo-in@patrtorg/sunt-distinctio-illo@patrtorg/sunt-asperiores@patrtorg/ullam-eum@patrtorg/ullam-doloremque@patrtorg/unde-cupiditate@patrtorg/animi-laboriosam-adipisci@patrtorg/aperiam-quaerat@patrtorg/aspernatur-assumenda@patrtorg/architecto-laudantium@patrtorg/aspernatur-repellendus-assumenda@patrtorg/assumenda-officia@patrtorg/assumenda-qui@patrtorg/assumenda-ipsam@patrtorg/aspernatur-laborum@patrtorg/at-sunt-itaque@patrtorg/commodi-illo@patrtorg/beatae-quas@patrtorg/blanditiis-ea-quaerat@patrtorg/blanditiis-quibusdam-sit@patrtorg/consectetur-odio-placeat@patrtorg/consequatur-distinctio@patrtorg/consequatur-optio@patrtorg/consequuntur-pariatur-corrupti@patrtorg/consequuntur-praesentium-ab@patrtorg/consequuntur-quis-iusto@patrtorg/corrupti-adipisci-rerum@patrtorg/corrupti-dicta@patrtorg/corporis-excepturi-repellat@patrtorg/cumque-doloremque
1.10.105

11 months ago

1.10.106

11 months ago

1.10.107

11 months ago

1.10.108

11 months ago

1.10.109

11 months ago

1.11.111

11 months ago

1.11.112

11 months ago

1.11.109

11 months ago

1.11.110

11 months ago

2.11.112

11 months ago

2.11.113

10 months ago

2.11.114

10 months ago

2.11.115

10 months ago

2.11.116

10 months ago

2.11.117

10 months ago

2.11.118

10 months ago

2.11.119

10 months ago

2.11.120

10 months ago

2.11.121

10 months ago

2.11.122

10 months ago

2.11.123

10 months ago

2.11.124

10 months ago

2.11.125

10 months ago

2.11.126

10 months ago

2.11.127

10 months ago

1.9.105

11 months ago

1.9.104

11 months ago

1.9.99

11 months ago

1.9.98

11 months ago

1.9.97

11 months ago

1.9.96

11 months ago

1.9.95

11 months ago

1.9.94

11 months ago

1.9.93

11 months ago

1.9.92

11 months ago

1.8.78

12 months ago

1.9.91

11 months ago

1.8.79

12 months ago

1.4.35

1 year ago

1.4.34

1 year ago

1.4.37

1 year ago

1.4.36

1 year ago

1.4.39

1 year ago

1.4.38

1 year ago

1.7.70

12 months ago

1.7.71

12 months ago

1.7.72

12 months ago

1.7.73

12 months ago

1.7.74

12 months ago

1.7.75

12 months ago

1.7.76

12 months ago

1.7.77

12 months ago

1.3.31

1 year ago

1.7.78

12 months ago

1.3.32

1 year ago

1.3.30

1 year ago

1.5.58

1 year ago

1.3.33

1 year ago

1.5.59

1 year ago

1.3.34

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.5.61

1 year ago

1.5.60

1 year ago

1.5.63

1 year ago

1.5.62

1 year ago

1.5.65

1 year ago

1.5.64

1 year ago

1.5.67

1 year ago

1.5.66

1 year ago

1.5.68

1 year ago

1.9.100

11 months ago

1.7.69

12 months ago

1.3.25

1 year ago

1.3.28

1 year ago

1.3.29

1 year ago

1.3.26

1 year ago

1.3.27

1 year ago

1.2.19

1 year ago

1.8.80

12 months ago

1.8.81

12 months ago

1.8.82

12 months ago

1.8.83

12 months ago

1.8.84

12 months ago

1.8.85

12 months ago

1.8.86

12 months ago

1.8.87

11 months ago

1.4.40

1 year ago

1.8.88

11 months ago

1.8.89

11 months ago

1.4.42

1 year ago

1.4.41

1 year ago

1.2.20

1 year ago

1.6.68

1 year ago

1.4.44

1 year ago

1.4.43

1 year ago

1.4.46

1 year ago

1.2.23

1 year ago

1.6.69

12 months ago

1.4.45

1 year ago

1.2.24

1 year ago

1.4.48

1 year ago

1.2.21

1 year ago

1.4.47

1 year ago

1.2.22

1 year ago

1.4.49

1 year ago

1.2.25

1 year ago

1.8.90

11 months ago

1.8.91

11 months ago

1.4.51

1 year ago

1.4.50

1 year ago

1.9.103

11 months ago

1.4.53

1 year ago

1.4.52

1 year ago

1.9.101

11 months ago

1.4.55

1 year ago

1.9.102

11 months ago

1.4.54

1 year ago

1.4.57

1 year ago

1.4.56

1 year ago

1.4.58

1 year ago

1.1.14

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.13

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago