Permalink
Browse files

modify some private functions

  • Loading branch information...
1 parent 9771433 commit c00ea2eaaa5ccae4204bd298b428630de5585415 @tommy351 committed Sep 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
@@ -16,11 +16,11 @@ var _isObject = function(obj){
};
var _isRegExp = function(obj){
- return toString.call(obj) == '[object RegExp]';
+ return obj instanceof RegExp;
};
var _isFunction = function(obj){
- return toString.call(obj) == '[object Function]';
+ return typeof obj === 'function';
};
var _toArray = function(obj){

0 comments on commit c00ea2e

Please sign in to comment.