← Code LabReact Native0/50 solved · 0%
Reliability · hard

43. Managing a pending transaction queue

Enqueue and update pending transactions immutably.

Write `enqueueTx(queue, tx)` appending `{ ...tx, status: "queued" }`, and `markStatus(queue, id, status)` updating the matching item's status without mutating the original array.
Required in your answer: ...queue.map(