7.17.144 • Published 1 year ago

@firanorg/necessitatibus-similique-nam v7.17.144

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

1 year ago

7.17.143

1 year ago

7.16.130

1 year ago

7.16.131

1 year ago

7.16.132

1 year ago

7.16.133

1 year ago

7.16.141

1 year ago

7.16.142

1 year ago

7.16.140

1 year ago

7.16.138

1 year ago

7.16.139

1 year ago

7.16.134

1 year ago

7.16.135

1 year ago

7.16.136

1 year ago

7.16.137

1 year ago

7.15.126

1 year ago

7.15.127

1 year ago

7.15.128

1 year ago

7.15.129

1 year ago

7.17.142

1 year ago

7.15.130

1 year ago

7.15.124

1 year ago

7.15.125

1 year ago

7.15.122

1 year ago

7.15.123

1 year ago

7.15.121

1 year ago

7.15.120

1 year ago

6.15.115

1 year ago

6.15.119

1 year ago

6.15.118

1 year ago

6.15.117

1 year ago

6.15.116

1 year ago

6.15.120

1 year ago

6.15.114

1 year ago

6.15.113

1 year ago

6.15.112

1 year ago

5.15.110

1 year ago

6.15.111

1 year ago

6.15.110

1 year ago

5.15.109

1 year ago

5.15.107

1 year ago

5.15.108

1 year ago

5.15.106

1 year ago

5.15.105

1 year ago

5.15.104

1 year ago

5.15.103

1 year ago

5.15.102

1 year ago

5.15.101

1 year ago

5.15.100

1 year ago

5.15.99

1 year ago

5.14.99

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

2 years ago

2.6.21

2 years ago

5.13.84

1 year ago

4.10.61

1 year ago

2.4.18

2 years ago

2.4.17

2 years ago

2.4.16

2 years ago

2.4.15

2 years ago

5.13.89

1 year ago

5.13.85

1 year ago

5.13.86

1 year ago

5.13.87

1 year ago

5.13.88

1 year ago

5.13.92

1 year ago

5.13.93

1 year ago

5.13.94

1 year ago

5.13.95

1 year ago

5.13.90

1 year ago

5.13.91

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

1 year ago

5.13.97

1 year ago

4.12.72

1 year ago

4.12.71

1 year ago

2.9.36

1 year ago

4.12.70

1 year ago

4.12.69

1 year ago

2.7.27

1 year ago

2.7.22

2 years ago

2.7.26

2 years ago

2.7.25

2 years ago

2.7.24

2 years ago

2.7.23

2 years ago

2.5.18

2 years ago

2.5.19

2 years ago

3.10.61

1 year ago

5.12.72

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

1 year ago

2.5.21

2 years ago

5.12.78

1 year ago

5.14.98

1 year ago

5.12.79

1 year ago

5.14.97

1 year ago

5.12.73

1 year ago

5.12.74

1 year ago

5.12.75

1 year ago

5.12.76

1 year ago

2.5.20

2 years ago

5.12.80

1 year ago

4.11.65

1 year ago

5.12.81

1 year ago

4.11.64

1 year ago

5.12.82

1 year ago

4.11.63

1 year ago

5.12.83

1 year ago

4.11.62

1 year ago

4.11.69

1 year ago

4.11.68

1 year ago

4.11.67

1 year ago

4.11.66

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

1 year ago

4.11.61

1 year ago

2.8.27

1 year ago

2.4.14

2 years ago

2.3.13

2 years ago

2.3.12

2 years ago

2.3.14

2 years ago

2.2.12

2 years ago

2.2.11

2 years ago

2.2.10

2 years ago

2.1.10

2 years ago

2.1.9

2 years ago

2.1.8

2 years ago

2.1.7

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago