UNPKG

math-array

Version:

Math utility to calculate with two arrays.

16 lines (11 loc) 195 B
import { error, orderAware } from './utils' const div = (a, b) => { if (b === 0) { error('divide by zero') } return a / b } export default (a, b, n) => orderAware(a, b, div, n)