A decoder that validates and returns arrays
const numberArray = JsonDecoder.array(JsonDecoder.number());
numberArray.decode([1, 2, 3]); // Ok<number[]>
// All element failures are collected before returning:
numberArray.decode([1, '2', '3']);
// Err({ issues: [
// { message: '"2" is not a valid number', path: [1] },
// { message: '"3" is not a valid number', path: [2] }
// ] })
Decoder for arrays.