All Downloads are FREE. Search and download functionalities are using the official Maven repository.

node_modules.lodash._getMapData.js Maven / Gradle / Ivy

There is a newer version: 3.3.1
Show newest version
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;




© 2015 - 2025 Weber Informatics LLC | Privacy Policy