|
|
@@ -66,19 +66,20 @@ klass.type = function type(e) {
|
|
|
case 'boolean':
|
|
|
return 8;
|
|
|
case 'object':
|
|
|
- if (e instanceof Array)
|
|
|
+ if (e instanceof Array) {
|
|
|
return 4;
|
|
|
- if (e instanceof RegExp)
|
|
|
+ } else if (e instanceof RegExp) {
|
|
|
return 11;
|
|
|
- if (e instanceof Date)
|
|
|
+ } else if (e instanceof Date) {
|
|
|
return 9;
|
|
|
- if (e.constructor.name == 'MinKey')
|
|
|
+ } else if (e.constructor.name == 'MinKey') {
|
|
|
return -1;
|
|
|
- if (e.constructor.name == 'MaxKey')
|
|
|
+ } else if (e.constructor.name == 'MaxKey') {
|
|
|
return 127;
|
|
|
- default:
|
|
|
- return 42;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
+ return 42;
|
|
|
};
|
|
|
|
|
|
/**
|