declare global { interface ReadonlyArray { /** * Returns an array that contains all of the elements of this array that are * not `null` or `undefined`. * * @returns A new array with the results */ compact(): Array>; } interface Array { /** * Returns an array that contains all of the elements of this array that are * not `null` or `undefined`. * * @returns A new array with the results */ compact(): Array>; } } export {};