We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a946ca9 commit 0afb895Copy full SHA for 0afb895
packages/common/src/directives/ng_optimized_image/url.ts
@@ -17,12 +17,6 @@ export function isAbsoluteUrl(src: string): boolean {
17
return /^https?:\/\//.test(src);
18
}
19
20
-// Invokes a callback for each element in the array. Also invokes a callback
21
-// recursively for each nested array.
22
-export function deepForEach<T>(input: (T|any[])[], fn: (value: T) => void): void {
23
- input.forEach(value => Array.isArray(value) ? deepForEach(value, fn) : fn(value));
24
-}
25
-
26
// Given a URL, extract the hostname part.
27
// If a URL is a relative one - the URL is returned as is.
28
export function extractHostname(url: string): string {
0 commit comments