UNPKG

@antv/layout

Version:
30 lines (24 loc) 768 B
import { __require as require_assocIndexOf } from './_assocIndexOf.js'; var _listCacheHas; var hasRequired_listCacheHas; function require_listCacheHas () { if (hasRequired_listCacheHas) return _listCacheHas; hasRequired_listCacheHas = 1; var assocIndexOf = require_assocIndexOf(); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas(key) { return assocIndexOf(this.__data__, key) > -1; } _listCacheHas = listCacheHas; return _listCacheHas; } export { require_listCacheHas as __require }; //# sourceMappingURL=_listCacheHas.js.map