mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 06:27:49 +00:00
Remove unneeded Object coercions.
This commit is contained in:
@@ -3076,8 +3076,7 @@
|
|||||||
if (value == null) {
|
if (value == null) {
|
||||||
return value === undefined ? undefinedTag : nullTag;
|
return value === undefined ? undefinedTag : nullTag;
|
||||||
}
|
}
|
||||||
value = Object(value);
|
return (symToStringTag && symToStringTag in Object(value))
|
||||||
return (symToStringTag && symToStringTag in value)
|
|
||||||
? getRawTag(value)
|
? getRawTag(value)
|
||||||
: objectToString(value);
|
: objectToString(value);
|
||||||
}
|
}
|
||||||
@@ -3757,7 +3756,6 @@
|
|||||||
* @returns {Object} Returns the new object.
|
* @returns {Object} Returns the new object.
|
||||||
*/
|
*/
|
||||||
function basePick(object, paths) {
|
function basePick(object, paths) {
|
||||||
object = Object(object);
|
|
||||||
return basePickBy(object, paths, function(value, path) {
|
return basePickBy(object, paths, function(value, path) {
|
||||||
return hasIn(object, path);
|
return hasIn(object, path);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user