main
Last change
on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
335 bytes
|
Rev | Line | |
---|
[d565449] | 1 | /**
|
---|
| 2 | * Checks if a `cache` value for `key` exists.
|
---|
| 3 | *
|
---|
| 4 | * @private
|
---|
| 5 | * @param {Object} cache The cache to query.
|
---|
| 6 | * @param {string} key The key of the entry to check.
|
---|
| 7 | * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
---|
| 8 | */
|
---|
| 9 | function cacheHas(cache, key) {
|
---|
| 10 | return cache.has(key);
|
---|
| 11 | }
|
---|
| 12 |
|
---|
| 13 | export default cacheHas;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.