mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Apply even more let/const transforms.
This commit is contained in:
2
get.js
2
get.js
@@ -26,7 +26,7 @@ import baseGet from './_baseGet.js';
|
||||
* // => 'default'
|
||||
*/
|
||||
function get(object, path, defaultValue) {
|
||||
var result = object == null ? undefined : baseGet(object, path);
|
||||
const result = object == null ? undefined : baseGet(object, path);
|
||||
return result === undefined ? defaultValue : result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user