CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes48downloads
_getMapData.js19 linesDownload Raw Back to lodash
1var isKeyable = require('./_isKeyable');2 3/**4 * Gets the data for `map`.5 *6 * @private7 * @param {Object} map The map to query.8 * @param {string} key The reference key.9 * @returns {*} Returns the map data.10 */11function getMapData(map, key) {12  var data = map.__data__;13  return isKeyable(key)14    ? data[typeof key == 'string' ? 'string' : 'hash']15    : data.map;16}17 18module.exports = getMapData;19 
basant307/AI_Governance_Project · CoolFace