Skip to content

Commit

Permalink
refine typecheck method
Browse files Browse the repository at this point in the history
  • Loading branch information
isayme committed Nov 13, 2014
1 parent 2098017 commit a3ba5d1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/util-lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,9 @@
* util-lang.js - The minimal language enhancement
*/

var _object = {}

function isType(type) {
return function(obj) {
return _object.toString.call(obj) == "[object " + type + "]"
return {}.toString.call(obj) == "[object " + type + "]"
}
}

Expand Down

0 comments on commit a3ba5d1

Please sign in to comment.