A mini clone of the Lodash library.
BEWARE: This library was published for learning purposes. It is not intended for use in production-grade software
'npm install @the1andonlycj/lotide'
const _ = require('@the1andonlycj/lotide');'
const results = _.tail([1, 2, 3]) // => [2, 3]`
The following functions are currently implemented:
head(array): returns the first element of the array
tail(array): returns everything but the first element of the array (the "tail")
middle(array): returns the middle number in an array with an odd number of elements or the two middle numbers in an array that has an even number of elements.