Returns the first item of an iterable.
npm install --save first-of-iterable
const firstOfIterable = require('first-of-iterable')
console.log(firstOfIterable([]))
//=> undefined
console.log(firstOfIterable([1, 2, 3]))
//=> 1
Return the first value of the iterable, or undefined
if the iterable is empty.