lib/insert.js
function insert (i, val, array) {
  array = copy(array)
  array.splice(i, 0, val)
  return array
}
function insert (i, val, array) {
  array = copy(array)
  array.splice(i, 0, val)
  return array
}
function insert ( i , val , array ) { array = copy ( array ) array . splice ( i , 0 , val ) return array }
Returns a new array with the supplied element inserted
at index `i`.

@param {Int} i
@param {Any} val
@param {Array} array
@return {Array}
Returns a new array with the supplied element inserted at index i .