/******************************************************************** * @author: Kaven * @email: kaven@wuwenkai.com * @website: http://blog.kaven.xyz * @file: [Kaven-Basic] /src/libs/array/ArrayRemove.ts * @create: 2025-06-26 15:59:16.601 * @modify: 2025-07-11 21:19:12.783 * @version: 6.0.0 * @times: 18 * @lines: 120 * @copyright: Copyright © 2018-2025 Kaven. All Rights Reserved. * @description: [description] * @license: * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in all * copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. ********************************************************************/ import { TPredicateFunction, TRemoveType } from "../type/basic"; /** * Removes the specified item from the given array. * * @param array - The array from which to remove the item. * @param item - The item to be removed from the array. * @param type - (Optional) The removal strategy or type, defined by `TRemoveType`. * @returns The original array with the specified item removed. * * @since 4.1.0 * @version 2025-07-29 */ export declare function ArrayRemove(array: T[], item: T, type?: TRemoveType): T[]; /** * Removes all occurrences of the specified items from the given array. * * @param array - The array from which to remove items. * @param items - The items to remove from the array. * @returns The original array with the specified items removed. * * @since 4.1.0 * @version 2025-07-29 */ export declare function ArrayRemove(array: T[], items: T[]): T[]; /** * Removes elements from the array that match the given predicate function. * * @param array - The array to remove elements from. * @param predicate - A function that determines whether an element should be removed. * @returns The original array with the elements that do not match the predicate. * * @since 4.1.0 * @version 2025-07-29 */ export declare function ArrayRemove(array: T[], predicate: TPredicateFunction): T[]; //# sourceMappingURL=ArrayRemove.d.ts.map