closest-number
v2.0.0
Published
Find the closest number out of an array to a specific value
Readme
closest-number
Find the closest number out of an array to a specific value
Install
$ npm i closest-numberUsage
import closestNumber from 'closest-number';
closestNumber([10, 20, 30], 12);
// => 10License
MIT © André Ruffert
