mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -22,9 +22,7 @@ import baseGet from './_baseGet.js';
|
||||
* // => [2, 0]
|
||||
*/
|
||||
function propertyOf(object) {
|
||||
return function(path) {
|
||||
return object == null ? undefined : baseGet(object, path);
|
||||
};
|
||||
return path => object == null ? undefined : baseGet(object, path);
|
||||
}
|
||||
|
||||
export default propertyOf;
|
||||
|
||||
Reference in New Issue
Block a user