Skip to content

moveAll

moveAll<T>(from, to, options?): T[]

Defined in: src/modules/pile/pile-array.ts:30

Move every item of from onto the top of to, keeping their order unless reverse is set. Both arrays change in place. Returns the moved items in the order they were added.

With from === to, reverse flips the array in place.

T

T[]

T[]

MoveAllOptions = {}

T[]