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