eclipse-scout / scout.rt

https://www.eclipse.org/scout/
Eclipse Public License 2.0
34 stars 39 forks source link

objects: add isPojo() #1204

Closed cguglielmo closed 1 week ago

cguglielmo commented 2 weeks ago

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.