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

2.10.19 • Public • Published

Estimates new values between existing ones. 📦 😺 🏃 📼 🌔 📜 📰 📘

Similar: interleave, intermix, interpolate, intersperse.

This is part of package extra-array.

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


array.interpolate(x, fc);
// x:  an array
// fc: combine function (a, b)
const array = require("extra-array");

var x = [1, 2, 3];
array.interpolate(x, (a, b) => (a + b)/2);
// [ 1, 1.5, 2, 2.5, 3 ]

Readme

Keywords

Package Sidebar

Install

npm i @extra-array/interpolate.min

Weekly Downloads

0

Version

2.10.19

License

MIT

Unpacked Size

5 kB

Total Files

8

Last publish

Collaborators

  • wolfram77