diff --git a/lib/util.js b/lib/util.js index f79c5961..62e28053 100644 --- a/lib/util.js +++ b/lib/util.js @@ -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();