6.9.127 • Published 11 months ago

@diotoborg/quis-tempore-distinctio v6.9.127

Weekly downloads
-
License
MIT
Repository
github
Last release
11 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

11 months ago

2.5.48

1 year ago

2.5.49

1 year ago

6.8.89

12 months ago

6.8.88

12 months ago

6.8.87

12 months ago

6.8.86

12 months ago

6.8.85

1 year 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

12 months ago

6.8.101

12 months ago

6.8.104

12 months ago

6.8.103

12 months ago

6.8.100

12 months ago

5.6.71

1 year ago

5.6.70

1 year ago

6.8.109

11 months ago

6.8.106

11 months ago

6.8.105

12 months ago

6.8.108

11 months ago

6.8.107

11 months ago

6.6.80

1 year ago

6.6.81

1 year ago

6.6.82

1 year 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

11 months ago

5.6.62

1 year ago

6.8.112

11 months ago

5.6.61

1 year ago

1.1.19

1 year ago

6.8.115

11 months ago

5.6.64

1 year ago

1.1.18

1 year ago

6.8.114

11 months ago

5.6.63

1 year ago

1.1.17

1 year ago

6.8.111

11 months ago

6.8.110

11 months ago

6.6.77

1 year ago

6.6.78

1 year ago

6.6.79

1 year ago

6.8.117

11 months ago

6.8.116

11 months ago

6.8.92

12 months ago

6.8.91

12 months ago

6.8.90

12 months ago

6.6.71

1 year ago

6.6.72

1 year ago

6.6.73

1 year ago

6.6.74

1 year ago

6.6.75

1 year ago

6.6.76

1 year ago

1.1.23

1 year ago

6.8.99

12 months ago

5.6.69

1 year ago

1.1.22

1 year ago

6.8.98

12 months ago

1.1.21

1 year ago

6.8.97

12 months ago

1.1.20

1 year ago

6.8.96

12 months ago

5.6.66

1 year ago

1.1.27

1 year ago

6.8.95

12 months ago

5.6.65

1 year ago

1.1.26

1 year ago

6.8.94

12 months ago

5.6.68

1 year ago

1.1.25

1 year ago

6.8.93

12 months ago

5.6.67

1 year 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

11 months ago

1.5.37

1 year ago

6.9.118

11 months ago

6.9.117

11 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

11 months ago

6.9.124

11 months ago

6.7.82

1 year ago

6.9.123

11 months ago

6.7.83

1 year ago

6.9.122

11 months ago

6.7.84

1 year ago

6.9.121

11 months ago

6.7.85

1 year ago

1.2.30

1 year ago

6.9.120

11 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

11 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