import arrayOf from 'deep-waters/arrayOf';
import isNumber from 'deep-waters/isNumber';
import isString from 'deep-waters/isString';
// array of numbers only
const arrayOfNumbers = arrayOf(isNumber);
arrayOfNumbers([1, 2, 3, 4]); // → true;
arrayOfNumbers(['s', 't,' 'r', 'i', 'n', 'g']); // → false;
// array of multiple types
const numAndStrings = arrayOf(or(isNumber, isString));
numAndStrings([1, 2, 3, 4, 'can I have a little more?']); // → true;