interface Init { (list: string): string; (list: ArrayLike): T[]; } /** * Returns all but the last element of the given list or string. * * @param {Array} arr * @return {*} * @example * * init([1, 2, 3]); //=> [1, 2] * init([1, 2]); //=> [1] * init([1]); //=> [] * init([]); //=> [] */ declare const _default: Init; export default _default;