Even though null is counted as an object by Javascript, this function returns false for null values.
To check for null as well, use assertIsObjectOrNull.
If you want to check for Date, Error, Object, Map, Set, Regexp or Promise, there are special methods for this.
Asserts the object is an object.
Even though null is counted as an object by Javascript, this function returns false for null values. To check for null as well, use
assertIsObjectOrNull.If you want to check for Date, Error, Object, Map, Set, Regexp or Promise, there are special methods for this.