@antv/layout
Version:
graph layout algorithm
26 lines (21 loc) • 584 B
JavaScript
/**
* Checks if a `cache` value for `key` exists.
*
* @private
* @param {Object} cache The cache to query.
* @param {string} key The key of the entry to check.
* @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
*/
var _cacheHas;
var hasRequired_cacheHas;
function require_cacheHas () {
if (hasRequired_cacheHas) return _cacheHas;
hasRequired_cacheHas = 1;
function cacheHas(cache, key) {
return cache.has(key);
}
_cacheHas = cacheHas;
return _cacheHas;
}
export { require_cacheHas as __require };
//# sourceMappingURL=_cacheHas.js.map