import predicateType from '../helpers/predicateType'; /** * Returns the object in an array of objects with the minimum value calculated using the given iteratee. * * @since 1.0.0 * * @template T * * @param {T[]} collection - The array of objects to search for the minimum value. * @param {Function} iteratee - The iteratee to use for extracting the values to compare for the minimum. * * @returns {T} - The object with the minimum value calculated using the iteratee. * * @example * * minBy([{ name: 'alice', age: 25 }, { name: 'bob', age: 30 }, { name: 'charlie', age: 20 }], (obj) => obj.age); * // => { name: 'alice', age: 25 } * * minBy([{ name: 'alice', age: 30 }, { name: 'brenda', age: 25 }, { name: 'charlie', age: 30 }], (obj) => obj.name.length); * // => { name: 'brenda', age: 25 } */ declare const minBy: (collection: T, iteratee: predicateType) => T; export default minBy;