get all functions from string javascript code example Example: list methods of object js Object.getOwnPropertyNames(obj)