refactor(test_lib): remove IS_NODEJS

Closes #1015
This commit is contained in:
Marc Laval
2015-03-19 11:35:48 +01:00
parent ab5ed6f2ec
commit 2ff2ce3c6c
14 changed files with 83 additions and 45 deletions
+1
View File
@@ -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();
+4
View File
@@ -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;