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