1
0
Fork 0
management/front/dkha-web-sz-main/node_modules/lodash/_getMapData.js

19 lines
400 B
JavaScript
Raw Permalink Normal View History

2023-12-18 13:12:25 +08:00
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;