File tree Expand file tree Collapse file tree 3 files changed +9
-0
lines changed
modules/angular2/src/facade Expand file tree Collapse file tree 3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ bool isPresent(obj) => obj != null;
2525bool isBlank (obj) => obj == null ;
2626bool isString (obj) => obj is String ;
2727bool isFunction (obj) => obj is Function ;
28+ bool isType (obj) => obj is Type ;
2829
2930String stringify (obj) => obj.toString ();
3031
Original file line number Diff line number Diff line change @@ -42,6 +42,10 @@ export function isFunction(obj):boolean {
4242 return typeof obj === "function" ;
4343}
4444
45+ export function isType ( obj ) :boolean {
46+ return isFunction ( obj ) ;
47+ }
48+
4549export function stringify ( token ) :string {
4650 if ( typeof token === 'string' ) {
4751 return token ;
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ export function isFunction(obj): boolean {
4848 return typeof obj === "function" ;
4949}
5050
51+ export function isType ( obj ) : boolean {
52+ return isFunction ( obj ) ;
53+ }
54+
5155export function stringify ( token ) : string {
5256 if ( typeof token === 'string' ) {
5357 return token ;
You can’t perform that action at this time.
0 commit comments