5.8.67 • Published 12 months ago

@hishprorg/velit-sequi-odio v5.8.67

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

@hishprorg/velit-sequi-odio 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('@hishprorg/velit-sequi-odio');
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('@hishprorg/velit-sequi-odio');
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('@hishprorg/velit-sequi-odio');
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

s3cloudwatchcss lessconfigurableboundincludescollection.es6signalcoredependenciesecmascriptfunctionalrandomdataviewregular-expressiongradients csses-shim APItypanionreusemetadatayupconsoleawsruntimeECMAScript 5equalhardlinksjsviewglobhttpsclass-validatortranspilercharacterinternal sloturlsimpledbECMAScript 2022enumerableES8styleserrorcreatefunctionnumberletstatelessestreeyamlpruneemitECMAScript 7sortcloudtrailBigUint64ArrayUint8ArrayfullclibinaryStyleSheetObject.definePropertyeventsjsonwarningencryptionreadmapglacierasciisymlinkes2017ES7managerparsewhatwgreal-timeelectronpnpm9Int32ArrayArray.prototype.flatMapstyleguidefpless mixinsECMAScript 2020gesturesmixinslazyES3lastserializerspawnredux-toolkit_.extendcurltestinghas-ownvarsframerquerypackage managerauthfindLastIndexbundlingspinnerfpsxhrkeystransportbabel-coredeleteform-validationio-tsFloat64ArrayObservableUnderscoreextraArray.prototype.findLastIndexestestertranspileReactiveXInt16ArrayreverseFunction.prototype.namepicomatchsigtermvalidatechildjson-schemaproxypluginelasticachepuretoReversedl10ncss-in-jsbyteLengthtc39interruptsdirectoryfast-deep-copyObservablespackagesimporthelperansiponyfilltypescriptpoint-freeintrinsiccall-boundhandlersanimationasynclibphonenumberbuffersdomrfc4122assertmodulereducerbinariesresolvewritableutilitymatchAllsetPrototypeOfstyled-componentsdeephooksastECMAScript 2023reversedsymbolsoutputlanguagewgetObject.iswhichasterisksmobilefull-widthutiltoArrayregularjsdiffconsumeeventDispatchervaluedataViewESnexteventEmitterrdsTypeScriptprotobuf6to5comparegraphqles-shimsshamhttpRegExp#flagsfindObject.entriestrimRightnameslinkequalityaccessibilitygetOwnPropertyDescriptorselfcurriedwritepredictablemkdirsnested cssstringiefselmdescriptorphoneentriesflagsmodulesiterateargvpersistenthookformgenericsworkspace:*shimbootstrap csslesscsssymlinksflatMapqueuei18ncloudsearchinputes2015pyyamlpipeexecjQueryreact-componentnegativedependency managersuperstructforEachtimeArrayBufferrgbcloudformationmoveuninstallremoveArray.prototype.includestypedarraysjsdomignoregetoptstringifierdragstyleacornkoreanworkflowairbnbpinoprivate dataTypeBoxWebSocketsvariables in csses7polyfillwafelbuuidgetintrinsicsharedwidthindicatorqueueMicrotaskdeterministicwindowsiterationfast-clonerecursivegroupdescriptors3debsgroupByreadablenopenodeArray.prototype.flattentostringtagargumentslotArray.prototype.findLastartdatenameMicrosofttextwindow256react-hook-formperformantenvironmentsideYAMLwaitarraysharedarraybuffersyntaxerrorcallboundcss variableautoprefixerSetmonoreponegative zeroregexplivetoolkitweaksetcopybyteinstallerless compilerdeepcopyfetchtrimEndslicemkdirpObject.assignECMAScript 2015somereduxtypedhasOwnrouteschemesignedcore-jsdefinefigletprettyposeenvglobal objecta11yprivatees5streamsautoscalingsyntaxdom-testing-libraryECMAScript 2019sortedregexsetImmediateexpressmruBigInt64Arraysuperagentspeedes-abstractReflect.getPrototypeOffixed-widthkinesisapiprefixtestes2018toStringTagless.jseslint-pluginclassesES2020quoteeffect-tsbannercolorutilitiesbrowserzxfiltersafeformsextendspinnersminimaluser-streamsstylingassertiontslibbeanstalkregular expressionglobal this valuelengthjson-schema-validatorspringtypes
5.8.67

12 months ago

5.8.66

12 months ago

4.8.66

12 months ago

4.8.65

12 months ago

4.8.64

12 months ago

4.8.63

12 months ago

4.8.62

1 year ago

4.8.61

1 year ago

4.8.60

1 year ago

4.8.59

1 year ago

4.8.58

1 year ago

4.7.58

1 year ago

4.6.58

1 year ago

4.6.57

1 year ago

4.5.57

1 year ago

3.5.57

1 year ago

3.5.56

1 year ago

3.5.55

1 year ago

3.5.54

1 year ago

3.5.53

1 year ago

3.5.52

1 year ago

3.5.51

1 year ago

3.5.50

1 year ago

3.5.49

1 year ago

3.5.48

1 year ago

3.5.47

1 year ago

3.5.46

1 year ago

3.5.45

1 year ago

3.5.44

1 year ago

3.5.43

1 year ago

3.5.42

1 year ago

3.5.41

1 year ago

3.5.40

1 year ago

3.5.39

1 year ago

3.5.38

1 year ago

3.5.37

1 year ago

2.5.37

1 year ago

2.5.36

1 year ago

2.5.35

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

2.3.34

1 year ago

2.3.33

1 year ago

2.3.32

1 year ago

2.2.32

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

2.2.25

1 year ago

2.2.24

1 year ago

2.2.23

1 year ago

1.2.23

1 year ago

1.2.22

1 year ago

1.2.21

1 year ago

1.2.20

1 year ago

1.2.19

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.2.16

1 year ago

1.2.15

1 year ago

1.2.14

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

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