7.10.151 • Published 9 months ago

@ellentorg/recusandae-eius-maiores v7.10.151

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

@ellentorg/recusandae-eius-maiores Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES2015 spec-compliant Array.prototype.indexof 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 spec.

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

Example

var indexOf = require('@ellentorg/recusandae-eius-maiores');
var assert = require('assert');

assert.equal(indexOf([1, 2, 3], 2), 1);
assert.equal(indexOf([1, 0, 1], 1), 0);
assert.equal(indexOf([1, 2, 3], 4), -1);
assert.equal(indexOf([NaN], NaN), -1);
var indexOf = require('@ellentorg/recusandae-eius-maiores');
var assert = require('assert');
/* when Array#indexOf is not present */
delete Array.prototype.indexOf;
var shimmedMap = indexOf.shim();
assert.equal(shimmedMap, indexOf.getPolyfill());
assert.equal([1, 2, 3].indexOf(2), 1);
assert.equal([1, 0, 1].indexOf(1), 0);
assert.equal([1, 2, 3].indexOf(4), -1);
assert.equal([NaN].indexOf(NaN), -1);
var indexOf = require('@ellentorg/recusandae-eius-maiores');
var assert = require('assert');
/* when Array#indexOf is present */
var shimmedMap = indexOf.shim();
assert.equal(shimmedMap, Array.prototype.indexOf);
assert.equal([1, 2, 3].indexOf(2), 1);

Tests

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

redux-toolkitReactiveExtensionswrapdescriptorsObject.fromEntriesmovewafrmdirreactwebinspectprotocol-buffersloadbalancingObjectmixinsrapidbyteLengthtestingeventEmitterworkspace:*mruviewxtermmime-dbsettingsquoteequalprivateautoprefixerstylesmkdirpelbtrimRightroute53authenticationgdprobjECMAScript 2016mobilefastcloneyuploggingtexttoSortedjwtopenprotosliceclonereusecalllistenersinstalloptionprivate dataunicodeES2021superagentdeepcloneglobalregular expressionstapratelimitbatchtoArraywalkingmodulecrypttypeerrorinconnecttakemaprandomES2019uninstallincludesES5sequencelimitbluebirdchinesefseventsmomentES3propertieskinesisclassnametypesendpointenvIteratorfullwidthObject.assignes8loadinggetterRxJSassertfigletchanneltrimStartbannerrfc4122css lessuuidemrObservabledotenvbusylogArrayBufferUint32ArrayregexansitypanionhooksWebSocketbundlingelmenvironmentdayjsstoragegatewaymakecloudfrontairbnbentriesbootstrap csses2016watchfixed-widthdebugcore-jsdeterministicwritereact-hook-formtaskmonorepocallbackCSSStyleDeclarationfastifyspecform-validationmiddlewarewalkrgblibphonenumbermacosescapeRxcomparewaitcircularnopeObservablesTypeBoxextraCSSwindowsserializationdescriptionStreamprotobufcloudtrailpackage managerReflect.getPrototypeOfcollection.es6jsoncontainschromeqsidentifiersbcryptpushesprototypesharedarraybufferargssesqueueclassesappdomfsvaluesdefinePropertyterminalconcatMapECMAScript 7syntaxerrorlengthUnderscoredirectoryweakmapoptimiststatushasbreakreplayECMAScript 2022TypedArrayvisualvalidationencryptionvalueURLoffsetpruneisConcatSpreadablefast-cloneMicrosoftcharacterlook-upES2016efficientserializerassertionagentzeroes7StreamstoStringTagstartercoreparentsfast-deep-clonecolumnsrouterdependency managerthrottlecloudformationcolorsECMAScript 2015accessibilitylazyfunctionalshamwhichstringifytoolsi18nmkdirswordwraputil.inspectpasswordbuffersregexpinterruptsmetadatadataViewspinnerdeep-cloneBigInt64ArrayreadabledateowndatastructureInt32ArrayFunction.prototype.namesymlinksreadtypepostcss-plugina11yES2023codesrequireenvironmentssetPrototypeOfebsgroupByoutputdebuggerAsyncIteratorwidthzodpyyamliteratecloudwatchECMAScript 3pnpm9packageio-tskoreansymbolsgroupcloudsearchajaxcolor_.extendcopyintrinsicjsxcolour[[Prototype]]es2018httpskeyreal-timerobustYAMLconcatestreetypedsortedremovestyleeventsdiffcommandermochapredictabletapebuffersetImmediatehas-ownless cssperformancescheme-validationObject.valuesjsdom$.extenderrorrecursivethroattrim
@ellentorg/debitis-laboriosam-laudantium@ellentorg/alias-quibusdam-eius@ellentorg/asperiores-minima-minima@ellentorg/deleniti-beatae-dolorum@ellentorg/dolorem-animi-sed@ellentorg/corporis-soluta-ea@ellentorg/temporibus-modi-odio@ellentorg/maxime-libero-minus@ellentorg/eligendi-quisquam-provident@ellentorg/eligendi-earum-dolore@ellentorg/mollitia-consequatur-nemo@ellentorg/nihil-neque-non@ellentorg/nobis-eum-iste@ellentorg/quo-voluptatem-commodi@ellentorg/sint-dicta-modi@ellentorg/quo-debitis-odio@ellentorg/soluta-architecto-nesciunt@ellentorg/recusandae-ad-mollitia@ellentorg/similique-ullam-commodi@ellentorg/suscipit-quaerat-voluptas@ellentorg/cumque-qui-voluptas@ellentorg/doloribus-deserunt-odio@ellentorg/culpa-reiciendis-error@ellentorg/error-officiis-excepturi@ellentorg/expedita-accusantium-aliquid@ellentorg/perferendis-aspernatur-eligendi@ellentorg/quas-molestiae-vel@ellentorg/quam-temporibus-aperiam@ellentorg/possimus-eius-quos@ellentorg/possimus-sunt-quas@ellentorg/nobis-quis-excepturi@ellentorg/magnam-corrupti-ab@ellentorg/maiores-odit-temporibus@ellentorg/maxime-ut-id@ellentorg/aliquam-aspernatur-quidem@ellentorg/aperiam-facere-fuga@ellentorg/aperiam-praesentium-aliquam@ellentorg/consequatur-eveniet-asperiores@ellentorg/aliquam-rem-saepe@ellentorg/aliquid-molestiae-odit@ellentorg/iusto-alias-vero@ellentorg/voluptates-eaque-unde@ellentorg/unde-eum-explicabo@ellentorg/vel-ipsa-nemo@ellentorg/velit-praesentium-enim@ellentorg/veritatis-possimus-vitae@ellentorg/nostrum-exercitationem-facilis@ellentorg/officia-dolorem-ad@ellentorg/non-iure-assumenda
7.10.151

9 months ago

7.10.150

9 months ago

6.8.126

10 months ago

6.8.125

10 months ago

6.5.99

11 months ago

6.5.98

11 months ago

6.8.127

10 months ago

7.9.140

10 months ago

6.5.91

11 months ago

6.5.93

11 months ago

6.5.92

11 months ago

6.5.95

11 months ago

6.5.94

11 months ago

6.5.97

11 months ago

6.5.96

11 months ago

1.4.33

1 year ago

1.4.32

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

6.6.111

11 months ago

6.6.110

11 months ago

6.6.113

11 months ago

6.6.112

11 months ago

6.6.115

11 months ago

6.6.114

11 months ago

4.5.90

12 months ago

4.5.91

11 months ago

7.10.144

9 months ago

7.10.143

9 months ago

7.10.146

9 months ago

7.10.145

9 months ago

7.10.148

9 months ago

2.5.69

1 year ago

7.10.147

9 months ago

1.3.32

1 year ago

7.10.149

9 months ago

2.5.65

1 year ago

2.5.66

1 year ago

2.5.67

1 year ago

2.5.68

1 year ago

7.10.140

10 months ago

7.10.142

10 months ago

2.5.63

1 year ago

7.10.141

10 months ago

2.5.64

1 year ago

1.1.19

1 year ago

2.5.70

1 year ago

2.5.71

1 year ago

5.5.91

11 months ago

3.5.87

12 months ago

3.5.86

12 months ago

6.6.106

11 months ago

3.5.85

12 months ago

6.6.105

11 months ago

3.5.84

12 months ago

6.6.108

11 months ago

6.6.107

11 months ago

6.6.109

11 months ago

4.5.87

12 months ago

4.5.88

12 months ago

7.9.135

10 months ago

4.5.89

12 months ago

7.9.134

10 months ago

7.9.137

10 months ago

3.5.83

12 months ago

2.5.76

12 months ago

7.9.136

10 months ago

3.5.82

12 months ago

2.5.77

12 months ago

7.9.139

10 months ago

2.5.78

12 months ago

7.9.138

10 months ago

2.5.79

12 months ago

1.1.20

1 year ago

2.5.72

1 year ago

2.5.73

12 months ago

2.5.74

12 months ago

2.5.75

12 months ago

2.5.80

12 months ago

2.5.81

12 months ago

2.5.82

12 months ago

6.7.123

10 months ago

6.7.122

10 months ago

6.7.121

10 months ago

6.7.120

10 months ago

6.7.125

10 months ago

6.7.124

10 months ago

2.4.49

1 year ago

1.4.40

1 year ago

7.8.129

10 months ago

2.4.58

1 year ago

1.4.42

1 year ago

7.8.128

10 months ago

2.4.57

1 year ago

1.4.41

1 year ago

1.2.20

1 year ago

7.8.127

10 months ago

1.4.44

1 year ago

2.4.59

1 year ago

1.4.43

1 year ago

2.4.54

1 year ago

1.4.46

1 year ago

1.2.23

1 year ago

2.4.53

1 year ago

1.4.45

1 year ago

1.2.24

1 year ago

2.4.56

1 year ago

1.4.48

1 year ago

1.2.21

1 year ago

2.4.55

1 year ago

1.4.47

1 year ago

1.2.22

1 year ago

2.4.50

1 year ago

1.2.27

1 year ago

1.4.49

1 year ago

1.2.28

1 year ago

2.4.52

1 year ago

1.2.25

1 year ago

2.4.51

1 year ago

1.2.26

1 year ago

1.2.29

1 year ago

6.5.100

11 months ago

6.5.101

11 months ago

6.5.102

11 months ago

6.5.103

11 months ago

6.7.116

11 months ago

6.5.104

11 months ago

1.2.30

1 year ago

6.7.115

11 months ago

6.5.105

11 months ago

1.2.31

1 year ago

6.7.119

10 months ago

7.8.134

10 months ago

6.7.118

10 months ago

1.2.32

1 year ago

7.8.133

10 months ago

6.7.117

10 months ago

7.8.132

10 months ago

2.4.61

1 year ago

7.8.131

10 months ago

2.4.60

1 year ago

7.8.130

10 months ago

2.4.63

1 year ago

2.4.62

1 year ago

1.1.18

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

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