function initial(array, n, guard) {
    if (!array) {
      return [];
    }
    return slice.call(array, 0, -((n == null || guard) ? 1 : n));
  }
Gets all but the last element of `array`. Pass `n` to exclude the last `n`
elements from the result.

@static
@memberOf _
@category Arrays
@param {Array} array The array to query.
@param {Number} [n] The number of elements to return.
@param {Object} [guard] Internally used to allow this method to work with
 others like `_.map` without using their callback `index` argument for `n`.
@returns {Array} Returns all but the last element or `n` elements of `array`.
@example

_.initial([3, 2, 1]);
// => [3, 2]