harbor run -t openthoughts/tasktrove-exp-rpt-stack-jest-large-stack-jest-1179harbor download openthoughts/tasktrove-exp-rpt-stack-jest-large-stack-jest-1179Task: Implement a small Array Utilities library under /app that re-creates core array operations as pure, well-typed functions operating on standard JavaScript arrays. The goal is to provide a clear, reusable API that mirrors the behaviors exercised by the provided tests (array creation, length, slicing, shallow copying, and common mutating operations) without relying on direct use of native array literals in hidden tests.
What you need to build
Required API (named exports)
createArray<T>(...items: T[]): T[]
getLength<T>(arr: T[]): number
sliceArray<T>(arr: T[], start: number, end: number): T[]
copyArray<T>(arr: T[]): T[]
pushItem<T>(arr: T[], item: T): number
popItem<T>(arr: T[]): T | undefined
unshiftItem<T>(arr: T[], item: T): number
shiftItem<T>(arr: T[]): T | undefined
mutateAt<T>(arr: T[], index: number, value: T): void
Notes and expected behavior
Deliverables
How this maps to the tests
Implementation path