Apply destructuring transform.

This commit is contained in:
John-David Dalton
2017-01-06 15:52:32 -08:00
parent bf54267f0b
commit 41ad5e901f
2 changed files with 3 additions and 3 deletions

View File

@@ -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;