/** * Creates a function that invokes the method at `path` of a given object. * * @since 1.0.0 * * @param {string|Array} path - The path of the method to invoke. * @param {...*} args - The arguments to invoke the method with. * * @returns {Function} - Returns the new method function. * * @example * * const users = [{ name: 'Alice', age: 32 }, { name: 'Bob', age: 42 }]; * const getNames = method('name'); * const names = users.map(getNames); * // => ['Alice', 'Bob'] */ declare const method: (path: string | any[], ...args: any) => any; export default method;