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