refactor(i18n): I18nPipe uses NgLocalization (#9313)

and some refactoring
This commit is contained in:
Victor Berchet
2016-06-23 11:44:05 -07:00
committed by GitHub
parent 54dbed4f48
commit fed1672a43
11 changed files with 76 additions and 81 deletions

View File

@ -120,7 +120,7 @@ export function isType(obj: any): boolean {
return isFunction(obj);
}
export function isStringMap(obj: any): boolean {
export function isStringMap(obj: any): obj is Object {
return typeof obj === 'object' && obj !== null;
}