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