Validation API

isDef()

Validates that the passed arguments are not undefined.

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

isDef(0, '', [], {});
// true

isDef(null, false);
// true

isDef(undefined);
// false

isDef(1, 'book', undefined);
// false