Urara-Blog/node_modules/.pnpm-store/v3/files/b9/95f26da110749f293ffd8b76ec2525f9e39f356defc956cbdeb14c74b33aa7794e2358b4da8d24c627fa9a73c14d0516b67fc6ab56016c2c0aff31d64fc530
2022-08-14 01:14:53 +08:00

18 lines
400 B
Text

var isKeyable = require('./_isKeyable');
/**
* Gets the data for `map`.
*
* @private
* @param {Object} map The map to query.
* @param {string} key The reference key.
* @returns {*} Returns the map data.
*/
function getMapData(map, key) {
var data = map.__data__;
return isKeyable(key)
? data[typeof key == 'string' ? 'string' : 'hash']
: data.map;
}
module.exports = getMapData;