1.1.0 ā€¢ Published 5 years ago

gojob-closest-to-zero v1.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

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

šŸ¤ 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