even
v0.1.1
Published
Get the even numbered items from an array.
Downloads
21
Readme
even
Get the even numbered items from an array.
Install with npm
npm i even --save
Usage
var even = require('even');
// strings or integers
even([0, '1', 2, '3', '4', 5, 6, 7, 8, 9, 10]);
//=> [0, 2, '4', 6, 8, 10]
Run tests
Install dev dependencies:
npm i -d && npm test
Contributing
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
Author
Jon Schlinkert
License
Copyright (c) 2015 Jon Schlinkert
Released under the MIT license
This file was generated by verb on February 24, 2015.