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