7.17.144 • Published 9 months ago

@firanorg/necessitatibus-similique-nam v7.17.144

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

@firanorg/necessitatibus-similique-nam Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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

Example

var filter = require('@firanorg/necessitatibus-similique-nam');
var assert = require('assert');

assert.deepEqual(filter([1, 2, 3], function (x) { return x >= 2; }), [2, 3]);
assert.deepEqual(filter([1, 2, 3], function (x) { return x <= 2; }), [1, 2]);
var filter = require('@firanorg/necessitatibus-similique-nam');
var assert = require('assert');
/* when Array#filter is not present */
delete Array.prototype.filter;
var shimmedFilter = filter.shim();
assert.equal(shimmedFilter, filter.getPolyfill());
var arr = [1, 2, 3];
var isOdd = function (x) { return x % 2 !== 0; };
assert.deepEqual(arr.filter(isOdd), filter(arr, isOdd));
var filter = require('@firanorg/necessitatibus-similique-nam');
var assert = require('assert');
/* when Array#filter is present */
var shimmedFilter = filter.shim();
assert.equal(shimmedFilter, Array.prototype.filter);
assert.deepEqual(arr.filter(isOdd), filter(arr, isOdd));

Tests

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

jwtaccessibilityfunctionalproxycolourmime-dbmetadatapostcssreadablestreama11yObject.assignWebSockettoSortedclonedeleteeslint-pluginECMAScript 5apptrimLeftmkdirbrowserslistwidthECMAScript 2019performantES2023code pointsSetqueueinputlengthcoreURLiamjsawaitairbnbregular expressionformattingcallflagsescapefile systemtimejapaneseeslinthandlersbdddatastructureweaksetrmidleSymbol.toStringTagstylesheetimportwritableclassesswfbluebirdrangeerrorfullec2loghas-ownexpressionbatchfastreactes8makewordbreakargumentcloudformationsortedpackagefindbrowserglobiterateeast-asian-widthSymbolclassnamesstyled-componentsmimereuseReactiveXagentbcryptminimalauthStyleSheetautoscalingexitaccessorECMAScript 2018uninstalls3flatMaplook-upReactiveExtensionskoreanchromejavascriptObject.valueszodbootstrap cssfixed-widthasciidependenciesdescriptioniteratorpostcss-pluginfseventsECMAScript 3rmdirArray.prototype.flatMapreadpackage.jsonInt16Arraytypeerrorglacierresolvehashhigher-ordercopyspecloadingl10ncloudfrontpromisesURLSearchParamsastBigUint64Array_.extendMapyupmixinscomparecall-bindhotsymbolsES8typescriptwatchingdataeventDispatchercss nesting[[Prototype]]getintrinsicstreams2package manageriereduxchailistenersbyteOffsetnativehasOwnPropertyvaluespluginmochahookformutilnopeowncloudwatcheverysettereslintpluginwafwebFloat32Arrayreducerentriescompile lessoptimizergetlessfull-widthcore-jsObservableArray.prototype.includeswordwrap-0queueMicrotaskincludesES3workerclass-validatorwaitwatchruntimecss-in-jsexeccircularpropertyjQuerynumbertakeES2019TypedArrayES2018texttestoffsethttpfastcopyfunctionsmoduleassertslimitfullwidthArray.prototype.findLastrobuststarterirqStreamscheme-validationparentsrestfulfilterequalityserializerwgettrimsnsequalmatcheventsartxhrutilitiesinternal slotwrapreact-testing-librarypromisecacheqspackagesReflect.getPrototypeOfconcatES2016ES2022extensionstylinggradients css3getPrototypeOfquotebyteLengthistoolsRFC-6455intrinsicObject.keyssideECMAScript 6prunecloudtrailparsingrdses5maplintflatprotobufECMAScript 2022ebshasinferencepredictabledotenvkeycryptodescriptorsStreamsmonorepoBigInt64ArraysetObject.getPrototypeOfmodulescolorvisualfoldercollectionenderfigletObject.fromEntriesdescriptores2018trimEndemitpicomatchES2020globalparsenamespinnertypanionshames-abstractslotsyntaxcommanderphoneECMAScript 2020nested cssdeep-copyECMAScript 2023jsxreducesuperstructwindowscontainsemrstructuredCloneless compilerpropertiesexpressjsdiffzeroratelimitsimpledbwhichthrottlecurlconsumemapreduceremovegetterinvariantsuperagentopenmake dirrandomregexArrayBuffer#sliceprotocol-buffersformsObservablesprocessstyleguideconfigurablemomentsymlinkwarningECMAScript 2017errorcloudsearchencryptionhookssigintelectronfastifyrecursivejsdom__proto__fast-clonecorshasOwnauthentication
7.17.144

9 months ago

7.17.143

9 months ago

7.16.130

10 months ago

7.16.131

10 months ago

7.16.132

10 months ago

7.16.133

10 months ago

7.16.141

9 months ago

7.16.142

9 months ago

7.16.140

9 months ago

7.16.138

9 months ago

7.16.139

9 months ago

7.16.134

10 months ago

7.16.135

10 months ago

7.16.136

10 months ago

7.16.137

9 months ago

7.15.126

10 months ago

7.15.127

10 months ago

7.15.128

10 months ago

7.15.129

10 months ago

7.17.142

9 months ago

7.15.130

10 months ago

7.15.124

10 months ago

7.15.125

10 months ago

7.15.122

10 months ago

7.15.123

10 months ago

7.15.121

10 months ago

7.15.120

10 months ago

6.15.115

10 months ago

6.15.119

10 months ago

6.15.118

10 months ago

6.15.117

10 months ago

6.15.116

10 months ago

6.15.120

10 months ago

6.15.114

10 months ago

6.15.113

10 months ago

6.15.112

10 months ago

5.15.110

10 months ago

6.15.111

10 months ago

6.15.110

10 months ago

5.15.109

11 months ago

5.15.107

11 months ago

5.15.108

11 months ago

5.15.106

11 months ago

5.15.105

11 months ago

5.15.104

11 months ago

5.15.103

11 months ago

5.15.102

11 months ago

5.15.101

11 months ago

5.15.100

11 months ago

5.15.99

11 months ago

5.14.99

11 months ago

2.8.30

1 year ago

2.10.36

1 year ago

2.10.37

1 year ago

2.10.38

1 year ago

2.10.39

1 year ago

2.8.32

1 year ago

2.8.31

1 year ago

2.10.40

1 year ago

2.10.41

1 year ago

2.10.42

1 year ago

2.10.43

1 year ago

2.10.44

1 year ago

2.10.45

1 year ago

2.10.46

1 year ago

2.10.47

1 year ago

2.10.48

1 year ago

2.10.49

1 year ago

2.6.22

1 year ago

2.6.21

1 year ago

5.13.84

11 months ago

4.10.61

1 year ago

2.4.18

1 year ago

2.4.17

1 year ago

2.4.16

1 year ago

2.4.15

1 year ago

5.13.89

11 months ago

5.13.85

11 months ago

5.13.86

11 months ago

5.13.87

11 months ago

5.13.88

11 months ago

5.13.92

11 months ago

5.13.93

11 months ago

5.13.94

11 months ago

5.13.95

11 months ago

5.13.90

11 months ago

5.13.91

11 months ago

2.9.34

1 year ago

2.9.35

1 year ago

2.9.32

1 year ago

2.9.33

1 year ago

5.13.96

11 months ago

5.13.97

11 months ago

4.12.72

12 months ago

4.12.71

12 months ago

2.9.36

1 year ago

4.12.70

12 months ago

4.12.69

12 months ago

2.7.27

1 year ago

2.7.22

1 year ago

2.7.26

1 year ago

2.7.25

1 year ago

2.7.24

1 year ago

2.7.23

1 year ago

2.5.18

1 year ago

2.5.19

1 year ago

3.10.61

1 year ago

5.12.72

12 months ago

2.10.50

1 year ago

2.10.51

1 year ago

2.10.52

1 year ago

2.10.53

1 year ago

2.10.54

1 year ago

2.10.55

1 year ago

2.10.56

1 year ago

2.10.57

1 year ago

2.10.58

1 year ago

2.10.59

1 year ago

5.12.77

12 months ago

2.5.21

1 year ago

5.12.78

12 months ago

5.14.98

11 months ago

5.12.79

12 months ago

5.14.97

11 months ago

5.12.73

12 months ago

5.12.74

12 months ago

5.12.75

12 months ago

5.12.76

12 months ago

2.5.20

1 year ago

5.12.80

12 months ago

4.11.65

12 months ago

5.12.81

12 months ago

4.11.64

1 year ago

5.12.82

12 months ago

4.11.63

1 year ago

5.12.83

11 months ago

4.11.62

1 year ago

4.11.69

12 months ago

4.11.68

12 months ago

4.11.67

12 months ago

4.11.66

12 months ago

2.10.60

1 year ago

2.10.61

1 year ago

2.8.29

1 year ago

2.8.28

1 year ago

5.12.84

11 months ago

4.11.61

1 year ago

2.8.27

1 year ago

2.4.14

1 year ago

2.3.13

1 year ago

2.3.12

1 year ago

2.3.14

1 year ago

2.2.12

1 year ago

2.2.11

1 year ago

2.2.10

1 year ago

2.1.10

1 year ago

2.1.9

1 year ago

2.1.8

1 year ago

2.1.7

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.0.1

1 year ago

1.0.0

1 year ago