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

2.10.19 • Public • Published

Generates array from function application. 📦 😺 🏃 📼 🌔 📜 📰 📘

Alternatives: from, from$, fromRange, fromApply.

This is part of package extra-array.

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


array.fromApply(fn, v, [n]);
// fn: map function (v, i, x)
// v:  start value
// n:  number of values (0)
const array = require("extra-array");

array.fromApply(v => v+2, 2, 4);
// [ 2, 4, 6, 8 ]

array.fromApply(v => v*2, 2, 4);
// [ 2, 4, 8, 16 ]


References

Package Sidebar

Install

npm i @extra-array/from-apply.min

Weekly Downloads

1

Version

2.10.19

License

MIT

Unpacked Size

5.19 kB

Total Files

8

Last publish

Collaborators

  • wolfram77