loaders ยป number

number() โ†’ int
numberItems() โ†’ array
numberList() โ†’ array

An alias for the integer loader.

enogood: -13
bad: 0.3
javascriptconst document = eno.parse(input);

document.number('good');  // returns -13

document.number('bad');
  // throws an error: 'bad' must contain an integer, for instance '42' or '-21'.