odd-index
Returns an array with items oddly indexed
Features
Install
npm install --save odd-index
Script Tag
For Development
<script src="https://rawgit.com/Prosen-Ghosh/odd-index/master/odd-index.js"></script>
For Production
<script src="https://cdn.rawgit.com/Prosen-Ghosh/odd-index/737cb365/odd-index.js"></script>
Usage
const oddIndex = ; ;//=> [] ;//=> [] ;//=> [ 2, 4 ] ;//=> [ 'bar', 'bob' ] ;//=> [ 'bar', 'bob', [ 3, 4 ] ] ;//=> [ 'bar', 'bob', { a: 10 } ] ;//=> [ 'bar', 'bob', { a: 10 }, [Function] ] ; // without parameter thid function will throw a type error//=> TypeError: expect an array got undefined ; // this function only takes array argument//=> TypeError: expect an array got object
Author
Prosen Ghosh prosenghosh25@gmail.com (https://bd.linkedin.com/in/prosen-ghosh-baba9aa8)
License
- MIT