how to check methos on object javascript code example Example: javascript check object methods Object.getOwnPropertyNames()