main
Last change
on this file was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago |
Update repo after prototype presentation
|
-
Property mode
set to
100644
|
File size:
401 bytes
|
Rev | Line | |
---|
[d565449] | 1 | import assocIndexOf from './_assocIndexOf.js';
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Checks if a list cache value for `key` exists.
|
---|
| 5 | *
|
---|
| 6 | * @private
|
---|
| 7 | * @name has
|
---|
| 8 | * @memberOf ListCache
|
---|
| 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 listCacheHas(key) {
|
---|
| 13 | return assocIndexOf(this.__data__, key) > -1;
|
---|
| 14 | }
|
---|
| 15 |
|
---|
| 16 | export default listCacheHas;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.