The raw input
isNumberArray([]) >>
{
valid: true,
parsed: [],
};
isNumberArray([1]) >>
{
valid: true,
parsed: [1],
};
isNumberArray("") >>
{
valid: false,
error: 'Not an array: ""',
};
isNumberArray([""]) >>
{
valid: false,
error: 'Not an array of numbers: [""]',
};
Validate an array of numbers