Commit 9029313f authored by Alejandro Celaya's avatar Alejandro Celaya Committed by Alejandro Celaya

Migrate has-own to TS

parent 3df80053
......@@ -3,10 +3,7 @@
*
* `hasOwn(someObject, property)` should be used instead of
* `someObject.hasOwnProperty(name)`.
*
* @param {object} object
* @param {string} property
*/
export function hasOwn(object, property) {
export function hasOwn(object: object, property: string): boolean {
return Object.prototype.hasOwnProperty.call(object, property);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment