3.12.103 • Published 11 months ago

@diotoborg/vel-labore-incidunt v3.12.103

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

@diotoborg/vel-labore-incidunt 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 @diotoborg/vel-labore-incidunt

Usage/Examples

var findLast = require('@diotoborg/vel-labore-incidunt');
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('@diotoborg/vel-labore-incidunt');
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('@diotoborg/vel-labore-incidunt');
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

dom-testing-librarydebuggersyntaxerrorspinnersSymbola11ysimpledbdependenciesbusyxhrES5taskStyleSheetESidentifiersMapautoprefixerrmsharedlocationcurlagentpersistentECMAScript 2016rgbtypepromisestestframeworkES2016startinternalrequestargsparsingupprivateUint8ClampedArrayvalidatewarningawesomesaucechinesegesturesisConcatSpreadableTypedArrayinvariantlogi18ndataViewassertionrequire0protobufcomputed-typeschildtypescripthttpsinferencechromium@@toStringTagassertstyped arraylaunchbeanstalkbuffersetterregularasciijQueryfull-widthString.prototype.matchAlloptiondeepclonecligetshellwalkingdatastructuredebugshrinkwrapxdggdprhas-ownflattenwaitglobalcharactersafeoffsetsymbolcallbackviewbannervariablescjkio-tstoArrayuninstallexpressionread3dnegativebindes6ES6dayjsdescriptorshigher-ordertermstringprophelperendpointfindLastIndexreact posevisualinstallObjecttestingvalidparentsreactSymbol.toStringTagowntelephoneyupformprototypekeydeep-clonecmdhookspopmotionpropertiesbddquotewordbreakObject.valuesdirlazyopensJSON-0ECMAScript 2021ansigraphqlparserframerbluebirdObject.keyspromiseexecruntimecircularamazonObject.getPrototypeOfserializestringifierprogressglacieraccessibilityinputcollectionsortforEachsymlinkqueueRxJShelpersdroputilitiesnumberflatMapdependency managerfindupfindLastdynamodbzerorandomlinewrapES3includesnamesweaksetxtermfixed-widthArrayBuffer#sliceasyncfromwhatwgArray.prototype.flatglobObject.definePropertytypanionpushisicucss-in-jsTypeScriptidlastUnderscoretrimEndArrayBuffereslintlanguagejsdragconcates2017commandergetterInt32ArraydescriptionreusetypedarrayanimationsetRegExp.prototype.flagsES2017assignes-shimsstringifyfast-cloneconcatMapappcontainsmimeexpresstrimRightObservablesArray.prototype.filteroptimistenvironmentfunctionsECMAScript 2020eventEmitterfastkoreanrmdirfastclonespeccollection.es6uuidWeakSettoSortedpyyamlECMAScript 2022Array.prototype.includeses2015cacheArray.prototype.findLastIndexiteratorawaitprotomodulesquerystringcloudwatchES2015CSSStyleDeclarationindicatorpatchreact-testing-librarynodeRFC-6455npmspringbundlerjsonpathpositivefindtypesafehttpes-shim APIposesomebrowserslistObject.fromEntrieschaisnsreadablestreamsyntaxonceelbjavascriptpnpm9redactcolourlookeast-asian-widthrm -frbyteBigInt64ArrayWebSocketwebpostcsscolumnfunctionbrowserlistunicodecall-bindloadingdeepcopyWebSocketsES7rapidArray.prototype.flatMapprefixdeterministicwalksymbolslintutilitysymlinksqueryfetchdotenvES2020reducetostringtagnegative zeroMicrosofttapecreatewhichsuperagentl10ntakemkdirschannelcompareprotocol-buffersopenerlengthinredirecttimeparentutil.inspectmruentrieses2018eslint-plugindataviewworkspace:*colorspipeUint32Arrayswfroute53readableemojideeptslibmobilemimetypeskinesishasOwnPropertyproxyextensionopenmergesetPrototypeOfcloudformationimmutableArray.prototype.flattenfast-copyttyqslimitedenderECMAScript 6tsserializerURLSearchParamspackage managerpicomatchIteratorflagspathdescriptorreducerguidES8searchtypeerrores5matchAllloadbalancingpostcss-pluginURLebscolorES2022file systemgetoptes2016everytddfunctionalstylesspawnhashcommand-linefsec2ratetc39processSetfunction.lengthreact animationexesameValueZerorangeerrorvalidationurlcallsequenceeventsobjectoptimizeres7globalscryptotrimmappackagesnodejsdeletetoolkitseseditorRxregexpworkerfullYAMLmulti-packagestatelessairbnbECMAScript 2017breaklinkrm -rfjsonestreeomitconfigurablees8chromefastifyArrayBuffer.prototype.sliceshebangpropertyconsumeajaxrouteponyfillgetOwnPropertyDescriptorcloudtrailmkdirpPushefficientworkflowawsreact-hooksarraybuffergetPrototypeOfformatpackageECMAScript 5streamprettybundlingbrowsergetintrinsicreal-timeequalityterminaliamratelimitrdswritemodulevestwordwrapeslintconfiggroupFloat64ArrayavawafespreeperformanceimmerArray.prototype.containsgroupByReactiveExtensionspreserve-symlinkssortedAsyncIteratorloggerJSON-Schemazodmake dirwebsitefoldercharactersfast-deep-copykarmapackage.jsonwrapassertslottesterformattingprunewritablewaapitypedarraysutiltrimStartfigletReflect.getPrototypeOfmakeargvcall-boundsqs_.extendcallbound
2.9.82

12 months ago

2.9.85

11 months ago

2.9.83

12 months ago

2.9.84

12 months ago

2.3.27

1 year ago

2.5.47

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.5.43

1 year ago

2.5.44

1 year ago

2.7.64

1 year ago

2.5.45

1 year ago

2.3.22

1 year ago

2.5.46

1 year ago

2.3.21

1 year ago

2.5.40

1 year ago

2.5.41

1 year ago

2.5.42

1 year ago

1.2.13

1 year ago

1.2.16

1 year ago

1.2.17

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

3.12.98

11 months ago

3.12.97

11 months ago

3.12.99

11 months ago

3.12.96

11 months ago

3.10.86

11 months ago

3.10.85

11 months ago

2.6.48

1 year ago

2.6.49

1 year ago

2.4.27

1 year ago

2.8.67

12 months ago

2.8.66

12 months ago

2.8.65

1 year ago

2.8.64

1 year ago

2.6.47

1 year ago

2.8.69

12 months ago

2.8.68

12 months ago

2.8.70

12 months ago

2.6.50

1 year ago

2.8.74

12 months ago

2.8.73

12 months ago

2.8.72

12 months ago

2.8.71

12 months ago

3.12.102

11 months ago

2.2.17

1 year ago

3.12.101

11 months ago

2.2.18

1 year ago

3.12.103

11 months ago

2.6.59

1 year ago

2.8.78

12 months ago

2.6.55

1 year ago

2.8.77

12 months ago

2.6.56

1 year ago

2.8.76

12 months ago

2.6.57

1 year ago

2.8.75

12 months ago

2.6.58

1 year ago

2.6.51

1 year ago

2.6.52

1 year ago

2.6.53

1 year ago

2.8.79

12 months ago

2.6.54

1 year ago

2.8.81

12 months ago

2.8.80

12 months ago

2.6.60

1 year ago

2.6.61

1 year ago

2.8.82

12 months ago

2.2.19

1 year ago

2.10.85

11 months ago

2.2.20

1 year ago

2.2.21

1 year ago

2.6.62

1 year ago

2.6.63

1 year ago

2.6.64

1 year ago

3.11.86

11 months ago

3.11.88

11 months ago

3.11.87

11 months ago

3.11.89

11 months ago

2.5.29

1 year ago

2.5.27

1 year ago

2.5.28

1 year ago

3.11.96

11 months ago

3.12.100

11 months ago

3.11.91

11 months ago

3.11.90

11 months ago

3.11.93

11 months ago

2.5.36

1 year ago

3.11.92

11 months ago

2.5.37

1 year ago

3.11.95

11 months ago

2.5.38

1 year ago

3.11.94

11 months ago

2.5.39

1 year ago

2.5.32

1 year ago

2.5.33

1 year ago

2.5.34

1 year ago

2.5.35

1 year ago

2.5.30

1 year ago

2.5.31

1 year ago

1.2.12

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.2.10

1 year ago

1.1.10

1 year ago

1.2.11

1 year ago

1.1.7

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago