Merge pull request #15312 from ericanderson/fix/lodash-compact

Lodash compact should remove undefineds
This commit is contained in:
Nathan Shively-Sanders
2017-03-28 16:18:59 -07:00
committed by GitHub

View File

@@ -1,6 +1,6 @@
// Type definitions for Lo-Dash 4.14
// Project: http://lodash.com/
// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>
// Definitions by: Brian Zengel <https://github.com/bczengel>, Ilya Mochalov <https://github.com/chrootsu>, Stepan Mikhaylyuk <https://github.com/stepancar>, Eric L Anderson <https://github.com/ericanderson>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
@@ -468,7 +468,7 @@ declare namespace _ {
* @param array The array to compact.
* @return (Array) Returns the new array of filtered values.
*/
compact<T>(array?: List<T>): T[];
compact<T>(array?: List<T | undefined>): T[];
}
interface LoDashImplicitArrayWrapper<T> {