even-index
Returns an array with items evenly indexed
Features
npm
Install
npm install --save even-index
Script Tag
For Development
<script src="https://rawgit.com/Prosen-Ghosh/even-index/master/even-index.js"></script>
For Production
<script src="https://cdn.rawgit.com/Prosen-Ghosh/even-index/e1e72d3a/even-index.js"></script>
Usage
const evenIndex = ; ;//=> [] ;//=> [ 1 ] ;//=> [ 1 ] ;//=> [ 1, 45 ] ;//=> [ 'foo', 'bar', 'tim' ] ;//=> [ 'foo', 'bar', [ 10, 20, 30 ] ] ;//=> [ 'foo', 'bar', [Function] ] ; // without parameter this function will return a type error//=> TypeError: expect an array got undefined ; // this function only expect an array//=> TypeError: expect an array got object
Author
Prosen Ghosh prosenghosh25@gmail.com (https://bd.linkedin.com/in/prosen-ghosh-baba9aa8)
License
- MIT