@extra-array/is-value-on
@extra-array/is-value-on
npm i @extra-array/is-value-on
@extra-array/is-value-on

@extra-array/is-value-on

An array is a collection of values, stored contiguously.

by nodef

2.7.8 (see all)License:MITTypeScript:Not Found
npm i @extra-array/is-value-on
Readme

Checks if array has a value. 🏃‍♂️ 📦

Alternatives: compare, map.
Similar: value, values, isValue.
This is part of package extra-array.

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

var x = [1, 2, 3, 4];
array.isValueOn(x, 3);
// true

array.isValueOn(x, -3);
// false

array.isValueOn(x, -3, v => Math.abs(v));
// true

references

Downloads/wk

43

GitHub Stars

14

LAST COMMIT

7mos ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
2.7.8
latest
2yrs ago
No alternatives found
No tutorials found
Add a tutorial

Rate & Review

100
No reviews found
Be the first to rate