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