diff --git a/types/underscore/index.d.ts b/types/underscore/index.d.ts index 72a2c23c33..8822deca98 100644 --- a/types/underscore/index.d.ts +++ b/types/underscore/index.d.ts @@ -856,7 +856,7 @@ declare module _ { * @param array Array to compact. * @return Copy of `array` without false values. **/ - compact(array: _.List): T[]; + compact(array: _.List | null | undefined): T[] /** * Flattens a nested array (the nesting can be to any depth). If you pass shallow, the array will