/** * Removes all elements from an array that satisfy the predicate and returns an array with the removed elements. * * @since 1.0.0 * * @template T * @param {T[]} array - The array to modify. * @param {Function} [predicate=identity] - The function invoked per iteration. * @returns {T[]} - An array of removed elements. * * @example * const arr = [1, 2, 3, 4, 5]; * const removed = remove(arr, n => n % 2 === 0); * console.log(arr); // [1, 3, 5] * console.log(removed); // [2, 4] */ declare const remove: (array: T[], predicate?: Function) => T[]; export default remove;