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

2.10.19 • Public • Published

Picks an arbitrary subsequence. 📦 😺 🏃 📼 🌔 📜 📰 📘

Similar: subsequence, subsequences, hasSubsequence, searchSubsequence.

This is part of package extra-array.

This is browserified, minified version of @extra-array/subsequence.
It is exported as global variable array_subsequence.
CDN: unpkg, jsDelivr.


array.subsequence(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, 4, 5];
array.subsequence(x);
// [ 1, 2 ]

array.subsequence(x, 3, 0.3);
// [ 1, 3, 5 ]

array.subsequence(x, 2, 0.3);
// [ 3, 5 ]


References

Readme

Keywords

Package Sidebar

Install

npm i @extra-array/subsequence.min

Weekly Downloads

0

Version

2.10.19

License

MIT

Unpacked Size

7.59 kB

Total Files

8

Last publish

Collaborators

  • wolfram77