mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -6,9 +6,7 @@
|
||||
* @returns {Function} Returns the new accessor function.
|
||||
*/
|
||||
function basePropertyOf(object) {
|
||||
return function(key) {
|
||||
return object == null ? undefined : object[key];
|
||||
};
|
||||
return key => object == null ? undefined : object[key];
|
||||
}
|
||||
|
||||
export default basePropertyOf;
|
||||
|
||||
Reference in New Issue
Block a user