//#region src/Array/remove.d.ts /** * # remove * * ```ts * function Array.remove( * target: readonly T[], * value: NoInfer, * ): readonly T[] * ``` * * Removes the first occurrence of `value` from `target` array. If the value is not found, returns the original array unchanged. * * ## Example * * ```ts [data-first] * import { Array } from "@monstermann/array"; * * Array.remove([1, 2, 3, 2], 2); // [1, 3, 2] * ``` * * ```ts [data-last] * import { Array } from "@monstermann/array"; * * pipe([1, 2, 3, 2], Array.remove(2)); // [1, 3, 2] * ``` * */ declare const remove: { (value: NoInfer): (target: T[]) => T[]; (value: NoInfer): (target: readonly T[]) => readonly T[]; (target: T[], value: NoInfer): T[]; (target: readonly T[], value: NoInfer): readonly T[]; }; //#endregion export { remove };