1.1.0 ā¢ Published 5 years ago
gojob-closest-to-zero v1.1.0
Closest to zero function
š Homepage
Prerequisites
- node >=8.9
Install
npm install gojob-closest-to-zero --save
Usage
Example (es module)
import { closestToZero } from 'gojob-closest-to-zero'
console.log(closestToZero([5, 4, -9, 6, -10, -1, 8]))
// => -1
Example (commonjs)
var closestToZero = require('gojob-closest-to-zero').closestToZero;
console.log(closestToZero([5, 4, -9, 6, -10, -1, 8]))
Author
š¤ Emilien Escalle
- Website: https://github.com/sponsors/neilime
- Github: @neilime
š¤ Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page.
Show your support
Give a āļø if this project helped you!
This README was generated with ā¤ļø by readme-md-generator
1.1.0
5 years ago