@extra-array/reject
TypeScript icon, indicating that this package has built-in type declarations

2.10.19 • Public • Published

Discards values which pass a test. 📦 😺 🏃 📼 🌔 📜 📰 📘

Alternatives: reject, reject$, rejectAt.
Similar: map, filter, reject, reduce, accumulate.

This is part of package extra-array.


array.reject(x, ft);
// x:  an array
// ft: test function (v, i, x)
const array = require("extra-array");

var x = [1, 2, 3, 4, 5];
array.reject(x, v => v % 2 === 1);
// [ 2, 4 ]

array.reject(x, v => v % 2 === 0);
// [ 1, 3, 5 ]


References

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.10.196latest

Version History

VersionDownloads (Last 7 Days)Published
2.10.196
2.10.181
2.10.171
2.10.161
2.10.151
2.10.141
2.10.131
2.10.120
2.10.110
2.10.100
2.10.90
2.10.80
2.10.70
2.10.60
2.10.50
2.10.40
2.10.20
2.10.10
2.10.00
2.9.640
2.9.630
2.9.620
2.9.610
2.9.600
2.9.590
2.9.580
2.9.570
2.9.560
2.9.550
2.9.540
2.9.530
2.9.520
2.9.510
2.9.500
2.9.490
2.9.480
2.9.470
2.9.460
2.9.450
2.9.440
2.9.430
2.9.420

Package Sidebar

Install

npm i @extra-array/reject

Weekly Downloads

12

Version

2.10.19

License

MIT

Unpacked Size

4.38 kB

Total Files

8

Last publish

Collaborators

  • wolfram77