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