mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Consistent use (always) of parentheses in arrow functions.
This commit is contained in:
@@ -6,7 +6,7 @@
|
||||
* @returns {Function} Returns the new accessor function.
|
||||
*/
|
||||
function baseProperty(key) {
|
||||
return object => object == null ? undefined : object[key]
|
||||
return (object) => object == null ? undefined : object[key]
|
||||
}
|
||||
|
||||
export default baseProperty
|
||||
|
||||
Reference in New Issue
Block a user