/** * This mixin will implement find and replace * if found the member in an array then replace it * otherwise push to array * * Created August 13th, 2020 * @author: ywarezk * @version: 4.2.0 * @copyright: Nerdeez Ltd */ /** * Find an element in the array and replace that element * @param array the array to do the work on * @param predicate the predicate function to find the first element that match * @param newValue the replacement value */ export declare function findAndReplace(arr: T[], predicate: (value: T) => boolean, newVal: T): void;