mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 01:57:50 +00:00
Apply arrow function transform.
This commit is contained in:
4
pick.js
4
pick.js
@@ -18,8 +18,6 @@ import flatRest from './_flatRest.js';
|
||||
* _.pick(object, ['a', 'c']);
|
||||
* // => { 'a': 1, 'c': 3 }
|
||||
*/
|
||||
var pick = flatRest(function(object, paths) {
|
||||
return object == null ? {} : basePick(object, paths);
|
||||
});
|
||||
var pick = flatRest((object, paths) => object == null ? {} : basePick(object, paths));
|
||||
|
||||
export default pick;
|
||||
|
||||
Reference in New Issue
Block a user