Skip to content

Commit c2b7260

Browse files
committed
refactor(@angular-devkit/core): deprecate unused utility functions
The `clean` and `mapObject` utility functions are unused by the Angular CLI.
1 parent 9b10025 commit c2b7260

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packages/angular_devkit/core/src/utils/array.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9+
/** @deprecated Since v12.0, unused by the Angular tooling */
910
export function clean<T>(array: Array<T | undefined>): Array<T> {
1011
return array.filter(x => x !== undefined) as Array<T>;
1112
}

packages/angular_devkit/core/src/utils/object.ts

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9+
/** @deprecated Since v12.0, unused by the Angular tooling */
910
export function mapObject<T, V>(obj: { [k: string]: T },
1011
mapper: (k: string, v: T) => V): { [k: string]: V } {
1112
return Object.keys(obj).reduce((acc: { [k: string]: V }, k: string) => {

0 commit comments

Comments
 (0)