The existing isPlainObject actually has the wrong name, it does not check for plain objects, just for objects.
Adjusting the behavior would likely break existing code, so there is now a new method called isPojo (short for plain old JavaScript object) with the correct implementation.
The old function is deprecated and renamed to isObject.
The existing isPlainObject actually has the wrong name, it does not check for plain objects, just for objects. Adjusting the behavior would likely break existing code, so there is now a new method called isPojo (short for plain old JavaScript object) with the correct implementation. The old function is deprecated and renamed to isObject.