OrderedArray | Set | Record<string | number | symbol, B> | Map<B, A> | string => OrderedArray | Set | Record<string | number | symbol, B> | Map<B, A> | string
Returns all but the last item in an ordered list.
initial([1, 2, 3]) // [1, 2]
initial("abc") // "ab"