mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Bump to v3.10.0.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import isObjectLike from '../internal/isObjectLike';
|
||||
import isObject from './isObject';
|
||||
|
||||
/** `Object#toString` result references. */
|
||||
var regexpTag = '[object RegExp]';
|
||||
@@ -7,7 +7,7 @@ var regexpTag = '[object RegExp]';
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
/**
|
||||
* Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
|
||||
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
||||
* of values.
|
||||
*/
|
||||
var objToString = objectProto.toString;
|
||||
@@ -29,7 +29,7 @@ var objToString = objectProto.toString;
|
||||
* // => false
|
||||
*/
|
||||
function isRegExp(value) {
|
||||
return isObjectLike(value) && objToString.call(value) == regexpTag;
|
||||
return isObject(value) && objToString.call(value) == regexpTag;
|
||||
}
|
||||
|
||||
export default isRegExp;
|
||||
|
||||
Reference in New Issue
Block a user