@@ -24,6 +24,7 @@ class IMPLEMENTS {
|
||||
bool isPresent(obj) => obj != null;
|
||||
bool isBlank(obj) => obj == null;
|
||||
bool isString(obj) => obj is String;
|
||||
bool isFunction(obj) => obj is Function;
|
||||
|
||||
String stringify(obj) => obj.toString();
|
||||
|
||||
|
||||
@@ -38,6 +38,10 @@ export function isString(obj):boolean {
|
||||
return typeof obj === "string";
|
||||
}
|
||||
|
||||
export function isFunction(obj):boolean {
|
||||
return typeof obj === "function";
|
||||
}
|
||||
|
||||
export function stringify(token):string {
|
||||
if (typeof token === 'string') {
|
||||
return token;
|
||||
|
||||
Reference in New Issue
Block a user