how to check the avaiable function on a object in js code example Example: javascript check object methods Object.getOwnPropertyNames()