@extra-array/infix
@extra-array/infix
npm i @extra-array/infix
@extra-array/infix

@extra-array/infix

A collection of functions for working with Arrays.

by nodef

2.10.19 (see all)License:MITTypeScript:Not Found
npm i @extra-array/infix
Readme

Picks an arbitrary infix. 📦 😺 🏃‍♂️ 📼 🌔 📜 📰 📘

Similar: infix, infixes, hasInfix, searchInfix.

This is part of package extra-array.


array.infix(x, [n], [r]);
// x: an array
// n: number of values (-1 => any)
// r: random seed 0->1
const array = require("extra-array");

var x = [1, 2, 3];
array.infix(x);
// [ 1, 2 ]

array.infix(x, 1);
// [ 2 ]

array.infix(x, 1, 0.5);
// [ 2 ]

Downloads/wk

100

GitHub Stars

16

LAST COMMIT

9mos ago

MAINTAINERS

1

CONTRIBUTORS

3

OPEN ISSUES

0

OPEN PRs

0
VersionTagPublished
2.10.19
latest
9mos ago
No alternatives found
No tutorials found
Add a tutorial
No dependencies found

Rate & Review

100
No reviews found
Be the first to rate