7.10.151 • Published 10 months ago

@ellentorg/recusandae-eius-maiores v7.10.151

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

10 months ago

7.10.150

10 months ago

6.8.126

11 months ago

6.8.125

11 months ago

6.5.99

12 months ago

6.5.98

12 months ago

6.8.127

11 months ago

7.9.140

11 months ago

6.5.91

1 year ago

6.5.93

1 year ago

6.5.92

1 year ago

6.5.95

1 year ago

6.5.94

1 year ago

6.5.97

12 months ago

6.5.96

12 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

12 months ago

6.6.110

12 months ago

6.6.113

12 months ago

6.6.112

12 months ago

6.6.115

11 months ago

6.6.114

12 months ago

4.5.90

1 year ago

4.5.91

1 year ago

7.10.144

10 months ago

7.10.143

10 months ago

7.10.146

10 months ago

7.10.145

10 months ago

7.10.148

10 months ago

2.5.69

1 year ago

7.10.147

10 months ago

1.3.32

1 year ago

7.10.149

10 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

1 year ago

3.5.87

1 year ago

3.5.86

1 year ago

6.6.106

12 months ago

3.5.85

1 year ago

6.6.105

12 months ago

3.5.84

1 year ago

6.6.108

12 months ago

6.6.107

12 months ago

6.6.109

12 months ago

4.5.87

1 year ago

4.5.88

1 year ago

7.9.135

11 months ago

4.5.89

1 year ago

7.9.134

11 months ago

7.9.137

11 months ago

3.5.83

1 year ago

2.5.76

1 year ago

7.9.136

11 months ago

3.5.82

1 year ago

2.5.77

1 year ago

7.9.139

11 months ago

2.5.78

1 year ago

7.9.138

11 months ago

2.5.79

1 year ago

1.1.20

1 year ago

2.5.72

1 year ago

2.5.73

1 year ago

2.5.74

1 year ago

2.5.75

1 year ago

2.5.80

1 year ago

2.5.81

1 year ago

2.5.82

1 year ago

6.7.123

11 months ago

6.7.122

11 months ago

6.7.121

11 months ago

6.7.120

11 months ago

6.7.125

11 months ago

6.7.124

11 months ago

2.4.49

1 year ago

1.4.40

1 year ago

7.8.129

11 months ago

2.4.58

1 year ago

1.4.42

1 year ago

7.8.128

11 months ago

2.4.57

1 year ago

1.4.41

1 year ago

1.2.20

1 year ago

7.8.127

11 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

12 months ago

6.5.101

12 months ago

6.5.102

12 months ago

6.5.103

12 months ago

6.7.116

11 months ago

6.5.104

12 months ago

1.2.30

1 year ago

6.7.115

11 months ago

6.5.105

12 months ago

1.2.31

1 year ago

6.7.119

11 months ago

7.8.134

11 months ago

6.7.118

11 months ago

1.2.32

1 year ago

7.8.133

11 months ago

6.7.117

11 months ago

7.8.132

11 months ago

2.4.61

1 year ago

7.8.131

11 months ago

2.4.60

1 year ago

7.8.130

11 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