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