TypeScriptObjectObject.hasOwn

Returns a boolean indicating whether the object has the specified property as its own property. (ES2022)

문법

Object.hasOwn(obj, key): boolean