Validation API
hasArr()
Validates that the passed arguments are arrays and not empty.
- Accepts any arguments.
- Returns true if all provided arguments pass the validation, otherwise, returns false.
Example:
hasArr(['book']);
// true
hasArr([0], [''], [null], $('div ?'));
// true
hasArr([]);
// false
hasArr('book');
// false
hasArr(['book'], []);
// false