Validation API

isStr()

Validates that the passed arguments are strings.

  • Accepts any arguments.
  • Returns true if all provided arguments pass the validation, otherwise, returns false.
Example:
isStr('');
// true

isStr('book', '');
// true

isStr(1);
// false

isStr('book', []);
// false

isStr('book', $('body'));
// false