Last change
on this file since e29cc2e was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
382 bytes
|
Line | |
---|
1 | var getMapData = require('./_getMapData');
|
---|
2 |
|
---|
3 | /**
|
---|
4 | * Checks if a map value for `key` exists.
|
---|
5 | *
|
---|
6 | * @private
|
---|
7 | * @name has
|
---|
8 | * @memberOf MapCache
|
---|
9 | * @param {string} key The key of the entry to check.
|
---|
10 | * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.
|
---|
11 | */
|
---|
12 | function mapCacheHas(key) {
|
---|
13 | return getMapData(this, key).has(key);
|
---|
14 | }
|
---|
15 |
|
---|
16 | module.exports = mapCacheHas;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.