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

2.10.19 • Public • Published

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 ]

Readme

Keywords

Package Sidebar

Install

npm i @extra-array/infix

Weekly Downloads

1

Version

2.10.19

License

MIT

Unpacked Size

4.78 kB

Total Files

8

Last publish

Collaborators

  • wolfram77