4.16.125 • Published 10 months ago

@diotoborg/dolorum-iste-excepturi v4.16.125

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

@diotoborg/dolorum-iste-excepturi Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

An ES7/ES2016 spec-compliant Array.prototype.includes 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.includes depends on a receiver (the this value), the main export takes the array to operate on as the first argument.

Engines that need this package include:

  • IE (all versions)
  • Safari < 9
  • Firefox < 43, and 99-101
  • Chrome < 47
  • Edge < 14
  • node < 6

Getting started

npm install --save @diotoborg/dolorum-iste-excepturi

Usage

Basic usage: includes(array, value, fromIndex=0)

var includes = require('@diotoborg/dolorum-iste-excepturi');
var assert = require('assert');
var arr = [ 'one', 'two' ];

includes(arr, 'one'); // true
includes(arr, 'three'); // false
includes(arr, 'one', 1); // false

Example

var arr = [
	1,
	'foo',
	NaN,
	-0
];

assert.equal(arr.indexOf(0) > -1, true);
assert.equal(arr.indexOf(-0) > -1, true);
assert.equal(includes(arr, 0), true);
assert.equal(includes(arr, -0), true);

assert.equal(arr.indexOf(NaN) > -1, false);
assert.equal(includes(arr, NaN), true);

assert.equal(includes(arr, 'foo', 0), true);
assert.equal(includes(arr, 'foo', 1), true);
assert.equal(includes(arr, 'foo', 2), false);
/* when Array#includes is not present */
delete Array.prototype.includes;
var shimmedIncludes = includes.shim();

assert.equal(shimmedIncludes, includes.getPolyfill());
assert.equal(arr.includes('foo', 1), includes(arr, 'foo', 1));
/* when Array#includes is present */
var shimmedIncludes = includes.shim();

assert.equal(shimmedIncludes, Array.prototype.includes);
assert.equal(arr.includes(1, 'foo'), includes(arr, 1, 'foo'));

Tests

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

chromearrayssesflagses-shimssymlinkjQueryredactescapefunction.lengthconcatMaptermbannerglobalpostcss-pluginprogresststrimEndES5shebangreal-timeemitstyleguideeventEmittermomentslicespringgetPrototypeOfYAML-0Streamrm -frdynamodbpopmotioncopyiterateWeakSettoolkitentriesidlermtostringtagqueuestringifiernodeprivate datainferencesometasklanguagesetPrototypeOfutilityeventstelephoneObject.ispicomatchInt8ArraylaunchdefaultgetOwnPropertyDescriptorlook-upxdg-openlruurlcloneomitelasticacheequalityhttpsdropstreamsfullwidthweaksetparentpushECMAScript 7ECMAScript 5forEachworkflowbuffercmdunicodeSymbolviewfull-widthestreeredux-toolkitURLes-shim APISymbol.toStringTagES2015chinesermdircompilertrimLeftkoreanupsyntaximmerES7difftypeassertscensoresfixed-width@@toStringTagopenecmascriptdominspectFloat32ArraytextSetsqs256Object.valuesschemahookspersistentcolorsassignmatchAllinstallcallbinddatargbdirpositivetesterawscallform-validationindicatora11yreact-hook-formlistenersbyteflattenappfunctionsrecursiveboundhelpercharactersisECMAScript 2015__proto__Float64ArraycolumnsTypedArraydependenciestypeschannelenvironmentdirectoryiamReactiveExtensionsenvcall-boundUnderscoretypeofisConcatSpreadablesettergetoptrapidvalidationextendFunction.prototype.namewafrouteformsiconvpackagecloudfrontInt16ArraymkdirpenumerableES2017mapreducedatastructureconfigserializeObject.assignhashapollofind-upfigleterrorsortshrinkwraprm -rfreadableoffsetES2022coreeslintio-tsdragprotocol-buffersArray.prototype.includesefficientdeepcopytoolsterminalapicommand-linedataviewtimebreakjapanesecheckiteratordefinePropertyobjutil.inspectimmutableserializationextraReactiveXObject.entriesarraybufferes6commandinputglobes2017jskeysprocesstypedarrayautoprefixerlookthroatphoneArray.prototype.filtercomparemonorepocodessidewaitparsingequalArrayBufferdescriptorstatelessbuffersmakeRegExp.prototype.flagsnativetoArrayqsrandomECMAScript 2019jsdomexecutablecss-in-jsstylepatchfastifystreams2ES2023joiroutingprototypesafeloadbalancinglimitpolyfillcharsetinvarianttakenumberargvextensionhasOwnfastclonefindLastIndexeslintplugincontainsESttyzodES2018awesomesauceshamObject.fromEntriesES8functionalanimation.envhelpersargsnamessortedponyfilldeep-clonecloudtrailregular expressionswhatwgcreatebatchnopetrimStartxhrfast-deep-copycolorargumentsquerystringECMAScript 2016scheme-validationglacierexpressioninloadingpnpm9bluebirdCSSintrinsicmatchesascii$.extendstdlibquotemkdirflag
4.15.125

10 months ago

4.16.125

10 months ago

2.7.61

1 year ago

2.7.60

1 year ago

2.13.99

11 months ago

2.14.115

10 months ago

2.13.98

11 months ago

2.3.28

1 year ago

2.13.97

11 months ago

2.3.27

1 year ago

2.14.113

11 months ago

2.13.96

11 months ago

2.11.88

11 months ago

2.14.114

10 months ago

2.13.95

11 months ago

2.11.89

11 months ago

2.14.111

11 months ago

2.14.112

11 months ago

2.14.110

11 months ago

2.5.43

1 year ago

2.5.40

1 year ago

2.5.41

1 year ago

2.5.42

1 year ago

2.11.90

11 months ago

2.11.91

11 months ago

2.11.92

11 months ago

2.11.93

11 months ago

2.11.94

11 months ago

2.1.16

1 year ago

2.1.17

1 year ago

2.1.14

1 year ago

2.1.15

1 year ago

2.1.18

1 year ago

2.1.19

1 year ago

2.1.23

1 year ago

2.1.21

1 year ago

2.1.22

1 year ago

2.1.20

1 year ago

2.8.63

1 year ago

2.8.62

1 year ago

2.8.61

1 year ago

2.4.29

1 year ago

2.4.28

1 year ago

2.6.48

1 year ago

2.6.49

1 year ago

2.6.44

1 year ago

2.6.45

1 year ago

2.6.46

1 year ago

2.8.64

1 year ago

2.6.47

1 year ago

2.6.43

1 year ago

2.15.116

10 months ago

2.15.117

10 months ago

2.15.118

10 months ago

2.15.119

10 months ago

2.6.50

1 year ago

2.10.70

12 months ago

2.10.71

12 months ago

2.10.72

12 months ago

2.15.115

10 months ago

2.10.73

12 months ago

2.10.74

12 months ago

2.10.75

12 months ago

2.10.76

12 months ago

2.10.77

12 months ago

2.10.78

12 months ago

2.6.59

1 year ago

2.10.79

12 months ago

2.6.55

1 year ago

2.4.32

1 year ago

2.6.56

1 year ago

2.4.31

1 year ago

2.6.57

1 year ago

2.4.34

1 year ago

2.6.58

1 year ago

2.4.33

1 year ago

2.6.51

1 year ago

2.6.52

1 year ago

2.6.53

1 year ago

2.4.30

1 year ago

2.6.54

1 year ago

3.15.125

10 months ago

3.15.124

10 months ago

3.15.123

10 months ago

2.15.120

10 months ago

2.15.121

10 months ago

2.15.122

10 months ago

2.10.80

12 months ago

2.15.123

10 months ago

2.10.81

12 months ago

2.10.82

12 months ago

2.10.83

12 months ago

2.10.84

12 months ago

2.10.85

12 months ago

2.14.99

11 months ago

2.10.86

12 months ago

2.10.87

12 months ago

2.2.26

1 year ago

2.10.88

11 months ago

2.2.27

1 year ago

2.2.24

1 year ago

2.2.25

1 year ago

2.2.23

1 year ago

2.9.64

1 year ago

2.14.104

11 months ago

2.14.105

11 months ago

2.10.64

1 year ago

2.14.102

11 months ago

2.12.95

11 months ago

2.10.65

1 year ago

2.14.103

11 months ago

2.12.94

11 months ago

2.10.66

1 year ago

2.14.100

11 months ago

2.10.67

1 year ago

2.5.36

1 year ago

2.14.101

11 months ago

2.10.68

12 months ago

2.5.37

1 year ago

2.10.69

12 months ago

2.5.38

1 year ago

2.5.39

1 year ago

2.5.34

1 year ago

2.5.35

1 year ago

2.14.108

11 months ago

2.7.59

1 year ago

2.14.109

11 months ago

2.14.106

11 months ago

2.14.107

11 months ago

2.1.13

1 year ago

2.1.9

1 year ago

2.1.12

1 year ago

2.1.10

1 year ago

2.1.11

1 year ago

2.1.8

1 year ago

2.1.7

1 year ago

2.1.6

1 year ago

2.1.5

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago