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