We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5195d4 commit 548f3ddCopy full SHA for 548f3dd
modules/angular2/src/facade/lang.dart
@@ -26,6 +26,7 @@ bool isBlank(obj) => obj == null;
26
bool isString(obj) => obj is String;
27
bool isFunction(obj) => obj is Function;
28
bool isType(obj) => obj is Type;
29
+bool isMap(obj) => obj is Map;
30
31
String stringify(obj) => obj.toString();
32
modules/angular2/src/facade/lang.ts
@@ -75,6 +75,10 @@ export function isType(obj): boolean {
75
return isFunction(obj);
76
}
77
78
+export function isMap(obj): boolean {
79
+ return typeof obj === 'object' && obj !== null;
80
+}
81
+
82
export function stringify(token): string {
83
if (typeof token === 'string') {
84
return token;
0 commit comments