/** * # Delete all matches in an Array */ export default function deleteByKey(arr: T[], key: keyof T | (keyof T)[]): T[];