Validation API

isObj()

Validates that the passed arguments are objects.

  • Accepts any arguments.
  • The following types do not pass validation: Array, Window, Document, HTMLCollection, Node, NodeList, Element, RegExp, Set, Map, Date, File, and FileList.
  • Returns true if all provided arguments pass the validation, otherwise, returns false.
Example:
isObj({});
// true

isObj({}, {key: 'value'});
// true

isObj([]);
// false

isObj(null);
// false

isObj({}, $('body'));
// false