6.9.127 • Published 10 months ago

@diotoborg/quis-tempore-distinctio v6.9.127

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

@diotoborg/quis-tempore-distinctio Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ESnext spec-compliant Array.prototype.findLastIndex 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.findLastIndex 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/quis-tempore-distinctio

Usage/Examples

var findLastIndex = require('@diotoborg/quis-tempore-distinctio');
var assert = require('assert');

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

assert.deepEqual(findLastIndex(arr, isNumber), 3);
var findLastIndex = require('@diotoborg/quis-tempore-distinctio');
var assert = require('assert');
/* when Array#findLastIndex is not present */
delete Array.prototype.findLastIndex;
var shimmed = findLastIndex.shim();

assert.equal(shimmed, findLastIndex.getPolyfill());
assert.deepEqual(arr.findLastIndex(isNumber), findLastIndex(arr, isNumber));
var findLastIndex = require('@diotoborg/quis-tempore-distinctio');
var assert = require('assert');
/* when Array#findLastIndex is present */
var shimmed = findLastIndex.shim();

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

Tests

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

JSONconcatMapkoreandompackagesi18nworkerhigher-ordertstoolkittypeofloggingsyntaxerrorECMAScript 7configyamlhelpererror.envwrapvariablesoffsetmimetypesistanbuldeep-cloneprototypeStreamdeterministicsqscurlexpressionECMAScript 2016ES2017environmentsutiljsonpluginstreamhas-owncolourwritablestringifypopmotionasserteslint-pluginvalidationavaFloat32Arraythroatpostcss-pluginquerywebsitelookdotenvfastanimationamazonfetchoptimistjshintpropertiesforEachassertionemitwidthschemarm -frlinewrapjsonpathcsschecktypes256bddprettycomputed-typesentriesfpspathrmdirzodnodetoolsapolloparseshebanghardlinksbrowsers3isConcatSpreadablerandomwaapicallboundWebSocketsURLSearchParamsbufferspecrdstapemapcacheiconvES2020regexconcurrencypnpm9reduxkarmaString.prototype.trimnamessimple cacheInt16Arrayinstallercommand-linedatastructurehttpArray.prototype.includessliceflagscloudwatchloggergroupBystylesfastcopypropertyoptimizerstyled-componentsinvariantgdprfindupTypeBoxlinkurlyupcollection.es6escapejapanesekey valueunicodePromisegetPrototypeOfdeepcopystylingfunctionsObject.definePropertyasyncfixed-widthaccessibilityeventEmittershimsetterartrgbgettermimeupFunction.prototype.namesymbolslaunchstringTypedArray$.extendthreepromisesfolderArray.prototype.findLastIndexextensionjQueryprotocol-bufferstypescriptstdlibprunecallbindawaitfunctionalObject.entriesclass-validatorhashchildserializationairbnbcloudsearchCSSsometrimsequenceinstrumentationidentifiersparentssharedarraybufferJSON-SchemaratelimitgroupinspectmatcheslintpluginESreact animationreact-hook-formES5definePropertyglobalvaluebytepushlintRegExp.prototype.flagsiteratedeleteES2023IteratorhookformcodesrequestES7applockfilefullwidthECMAScript 2023equalityreadablelocationes-shimsbreakpackage managerswfinferenceautoscalingfindLastTypeScriptES6assertsprefixdataViewmetadatafast-deep-clonegesturestestinges2018speedECMAScript 5descriptionsymlinkpreserve-symlinksquerystringreadablestreammime-dblogstatelessiterationsymlinksperformantfile cachetextcharsetcolorscensorstyleguidecloudfrontxtermbeanstalkendpointhelperstoStringTagUnderscorejsdiffECMAScript 2019patchprivateWeakSetfastifyexeflatMapSymbolreact-hooksajvreactquoteconfigurableURLeslintconfigYAMLposeresolveSymbol.toStringTagchaibindsyntaxRxsortedsetPrototypeOfisconsolecallfigletrfc4122elasticache
6.9.127

10 months ago

2.5.48

1 year ago

2.5.49

1 year ago

6.8.89

11 months ago

6.8.88

11 months ago

6.8.87

11 months ago

6.8.86

11 months ago

6.8.85

11 months ago

1.4.35

1 year ago

1.4.34

1 year ago

1.4.36

1 year ago

2.5.50

1 year ago

2.5.51

1 year ago

6.8.102

11 months ago

6.8.101

11 months ago

6.8.104

11 months ago

6.8.103

11 months ago

6.8.100

11 months ago

5.6.71

12 months ago

5.6.70

12 months ago

6.8.109

10 months ago

6.8.106

11 months ago

6.8.105

11 months ago

6.8.108

10 months ago

6.8.107

11 months ago

6.6.80

11 months ago

6.6.81

11 months ago

6.6.82

11 months ago

1.3.34

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

6.8.113

10 months ago

5.6.62

12 months ago

6.8.112

10 months ago

5.6.61

12 months ago

1.1.19

1 year ago

6.8.115

10 months ago

5.6.64

12 months ago

1.1.18

1 year ago

6.8.114

10 months ago

5.6.63

12 months ago

1.1.17

1 year ago

6.8.111

10 months ago

6.8.110

10 months ago

6.6.77

12 months ago

6.6.78

12 months ago

6.6.79

12 months ago

6.8.117

10 months ago

6.8.116

10 months ago

6.8.92

11 months ago

6.8.91

11 months ago

6.8.90

11 months ago

6.6.71

12 months ago

6.6.72

12 months ago

6.6.73

12 months ago

6.6.74

12 months ago

6.6.75

12 months ago

6.6.76

12 months ago

1.1.23

1 year ago

6.8.99

11 months ago

5.6.69

12 months ago

1.1.22

1 year ago

6.8.98

11 months ago

1.1.21

1 year ago

6.8.97

11 months ago

1.1.20

1 year ago

6.8.96

11 months ago

5.6.66

12 months ago

1.1.27

1 year ago

6.8.95

11 months ago

5.6.65

12 months ago

1.1.26

1 year ago

6.8.94

11 months ago

5.6.68

12 months ago

1.1.25

1 year ago

6.8.93

11 months ago

5.6.67

12 months ago

1.1.24

1 year ago

3.5.57

1 year ago

3.5.56

1 year ago

3.5.55

1 year ago

3.5.54

1 year ago

3.5.53

1 year ago

3.5.52

1 year ago

3.5.51

1 year ago

1.5.36

1 year ago

1.5.38

1 year ago

6.9.119

10 months ago

1.5.37

1 year ago

6.9.118

10 months ago

6.9.117

10 months ago

1.5.39

1 year ago

1.5.41

1 year ago

1.5.40

1 year ago

1.5.43

1 year ago

1.5.42

1 year ago

1.5.45

1 year ago

1.5.44

1 year ago

1.5.47

1 year ago

1.5.46

1 year ago

1.5.48

1 year ago

5.5.60

1 year ago

5.5.61

1 year ago

4.5.57

1 year ago

1.2.27

1 year ago

1.2.28

1 year ago

1.2.29

1 year ago

6.9.125

10 months ago

6.9.124

10 months ago

6.7.82

11 months ago

6.9.123

10 months ago

6.7.83

11 months ago

6.9.122

10 months ago

6.7.84

11 months ago

6.9.121

10 months ago

6.7.85

11 months ago

1.2.30

1 year ago

6.9.120

10 months ago

1.2.31

1 year ago

5.5.59

1 year ago

1.2.34

1 year ago

5.5.57

1 year ago

1.2.32

1 year ago

5.5.58

1 year ago

1.2.33

1 year ago

6.9.126

10 months ago

1.1.12

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.11

1 year ago

1.1.10

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

1.0.0

1 year ago