/** * a collection of array utility functions */ /** * Remove the specified object from the given Array * @param arr - array from which to remove an object * @param obj - to be removed * @returns the modified Array * let arr = [ "foo", "bar", "baz" ]; * // remove "foo" from the array * me.utils.array.remove(arr, "foo"); */ export declare function remove(arr: T[], obj: T): T[]; /** * return a random array element * @param arr - array to pick an element * @returns random member of array * @example * // Select a random array element * let arr = [ "foo", "bar", "baz" ]; * console.log(me.utils.array.random(arr)); */ export declare function random(arr: T[]): T; /** * return a weighted random array element, favoring the earlier entries * @param arr - array to pick an element * @returns random member of array */ export declare function weightedRandom(arr: T[]): T; //# sourceMappingURL=array.d.ts.map