mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Bump to v3.6.0.
This commit is contained in:
@@ -7,9 +7,8 @@ var boolTag = '[object Boolean]';
|
||||
var objectProto = Object.prototype;
|
||||
|
||||
/**
|
||||
* Used to resolve the `toStringTag` of values.
|
||||
* See the [ES spec](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
|
||||
* for more details.
|
||||
* Used to resolve the [`toStringTag`](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.prototype.tostring)
|
||||
* of values.
|
||||
*/
|
||||
var objToString = objectProto.toString;
|
||||
|
||||
@@ -30,7 +29,7 @@ var objToString = objectProto.toString;
|
||||
* // => false
|
||||
*/
|
||||
function isBoolean(value) {
|
||||
return (value === true || value === false || isObjectLike(value) && objToString.call(value) == boolTag) || false;
|
||||
return value === true || value === false || (isObjectLike(value) && objToString.call(value) == boolTag);
|
||||
}
|
||||
|
||||
export default isBoolean;
|
||||
|
||||
Reference in New Issue
Block a user