We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b10025 commit c2b7260Copy full SHA for c2b7260
packages/angular_devkit/core/src/utils/array.ts
@@ -6,6 +6,7 @@
6
* found in the LICENSE file at https://angular.io/license
7
*/
8
9
+/** @deprecated Since v12.0, unused by the Angular tooling */
10
export function clean<T>(array: Array<T | undefined>): Array<T> {
11
return array.filter(x => x !== undefined) as Array<T>;
12
}
packages/angular_devkit/core/src/utils/object.ts
export function mapObject<T, V>(obj: { [k: string]: T },
mapper: (k: string, v: T) => V): { [k: string]: V } {
return Object.keys(obj).reduce((acc: { [k: string]: V }, k: string) => {
0 commit comments