/** * Drops the last `n` elements. * * @tsplus static Chunk.Aspects dropRight * @tsplus pipeable Chunk dropRight */ export function dropRight(n: number) { return (self: Chunk): Chunk => self.take(Math.max(0, self.length - n)) }