2.2.30 • Published 5 years ago

@extra-iterable/min-index-on.min v2.2.30

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Finds index of smallest value. :running: :package: :ledger:

Alternatives: compare, map. This is part of package extra-iterable.

This is browserified, minified version of @extra-iterable/min-index-on. It is exported as global variable iterable_minIndexOn. CDN: unpkg, jsDelivr.

iterable.minIndexOn(x, [fn], [ths]);
// x:   an iterable
// fn:  map function (v, i, x)
// ths: this argument
const iterable = require('extra-iterable');

var x = [1, 2, -3, -4];
iterable.minIndexOn(x);
// 3                ^

iterable.minIndexOn(x, v => Math.abs(v));
// 0     ^

references

2.2.30

5 years ago

2.2.29

5 years ago

2.2.28

5 years ago

2.2.27

5 years ago

2.2.26

5 years ago

2.2.25

5 years ago

2.2.24

5 years ago

2.2.23

5 years ago

2.2.22

5 years ago

2.2.21

5 years ago

2.2.20

5 years ago

2.2.19

5 years ago

2.2.18

5 years ago

2.2.17

5 years ago

2.2.15

5 years ago

2.2.14

5 years ago