get all methods of an object javascript code example Example: javascript check object methods Object.getOwnPropertyNames()