mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Apply destructuring transform.
This commit is contained in:
@@ -8,8 +8,8 @@ import isKeyable from './_isKeyable.js';
|
||||
* @param {string} key The reference key.
|
||||
* @returns {*} Returns the map data.
|
||||
*/
|
||||
function getMapData(map, key) {
|
||||
var data = map.__data__;
|
||||
function getMapData({ __data__ }, key) {
|
||||
var data = __data__;
|
||||
return isKeyable(key)
|
||||
? data[typeof key == 'string' ? 'string' : 'hash']
|
||||
: data.map;
|
||||
|
||||
Reference in New Issue
Block a user