Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

modify some private functions

  • Loading branch information...
commit c00ea2eaaa5ccae4204bd298b428630de5585415 1 parent 9771433
@tommy351 authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 index.js
View
4 index.js
@@ -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){
Please sign in to comment.
Something went wrong with that request. Please try again.