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:
@@ -10,9 +10,7 @@ import arrayMap from './_arrayMap.js';
|
||||
* @returns {Object} Returns the key-value pairs.
|
||||
*/
|
||||
function baseToPairs(object, props) {
|
||||
return arrayMap(props, function(key) {
|
||||
return [key, object[key]];
|
||||
});
|
||||
return arrayMap(props, key => [key, object[key]]);
|
||||
}
|
||||
|
||||
export default baseToPairs;
|
||||
|
||||
Reference in New Issue
Block a user