object get all funcitons js code example Example: javascript check object methods Object.getOwnPropertyNames()