projects
/
platform
/
framework
/
web
/
crosswalk-tizen.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
97d21d151a3e94b0922011d5e392e2aa063bc8ea
[platform/framework/web/crosswalk-tizen.git]
/
1
define(function () {
2
3
var _rKind = /^\[object (.*)\]$/,
4
_toString = Object.prototype.toString,
5
UNDEF;
6
7
/**
8
* Gets the "kind" of value. (e.g. "String", "Number", etc)
9
*/
10
function kindOf(val) {
11
if (val === null) {
12
return 'Null';
13
} else if (val === UNDEF) {
14
return 'Undefined';
15
} else {
16
return _rKind.exec( _toString.call(val) )[1];
17
}
18
}
19
return kindOf;
20
});