continuous-array
v0.2.0
Published
A proxy that turns a numeric array in a continuous array
Downloads
3
Readme
Continuous Array
A function that turns a numeric array into a continuous array that can get float keys returning the linear interpolation for data.
const { continuousArray } = require('continuous-array')
const array = [1, 2, 4]
const continuous = continuousArray(array)
continuous[0] // 1
continuous[0.5] // 1.5
continuous[1.5] // 3