get-numbers
v1.0.0
Published
Get all the numbers from an array
Downloads
3
Maintainers
Readme
get-numbers
Get all the numbers from an array
Install
$ npm install --save get-numbers
Usage
var getNumbers = require('get-numbers');
getNumbers([1, 2, 'food', 5, 'bear']);
//=> [1, 2, 5]
getNumbers(['food', 'bear', 'eat']);
//=> []
API
getNumbers(input)
input
Required
Type: Array
License
MIT © Siddharth Kannan