Returns all but the last element of the given list or string.
init([1, 2, 3]); //=> [1, 2] init([1, 2]); //=> [1] init([1]); //=> [] init([]); //=> []
Generated using TypeDoc
Returns all but the last element of the given list or string.