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

20 lines
420 B
JavaScript
Raw Normal View History

2023-12-18 13:12:25 +08:00
var assocIndexOf = require('./_assocIndexOf');
/**
* Gets the list cache value for `key`.
*
* @private
* @name get
* @memberOf ListCache
* @param {string} key The key of the value to get.
* @returns {*} Returns the entry value.
*/
function listCacheGet(key) {
var data = this.__data__,
index = assocIndexOf(data, key);
return index < 0 ? undefined : data[index][1];
}
module.exports = listCacheGet;