function removeAt(array, index) {
  return _.first(array.splice(index, 1));
}
Removes an element from array at index and returns the removed element.

@static
@memberOf _
@category Array
@param {Array} array The array to modify.
@param {number} index The index of element to remove.
@returns {*} Returns the removed element.