mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
refactor(util) getType
This commit is contained in:
parent
412f57e982
commit
ccca0ca8f2
1 changed files with 1 additions and 3 deletions
|
|
@ -619,9 +619,7 @@
|
|||
*/
|
||||
this.getType = function(variable) {
|
||||
var regExp = new RegExp('\\s([a-zA-Z]+)'),
|
||||
obj = {},
|
||||
toStr = obj.toString,
|
||||
str = toStr.call(variable),
|
||||
str = {}.toString.call(variable),
|
||||
typeBig = str.match(regExp)[1],
|
||||
type = typeBig.toLowerCase();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue