main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 3 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
420 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | var assocIndexOf = require('./_assocIndexOf');
|
---|
| 2 |
|
---|
| 3 | /**
|
---|
| 4 | * Gets the list cache value for `key`.
|
---|
| 5 | *
|
---|
| 6 | * @private
|
---|
| 7 | * @name get
|
---|
| 8 | * @memberOf ListCache
|
---|
| 9 | * @param {string} key The key of the value to get.
|
---|
| 10 | * @returns {*} Returns the entry value.
|
---|
| 11 | */
|
---|
| 12 | function listCacheGet(key) {
|
---|
| 13 | var data = this.__data__,
|
---|
| 14 | index = assocIndexOf(data, key);
|
---|
| 15 |
|
---|
| 16 | return index < 0 ? undefined : data[index][1];
|
---|
| 17 | }
|
---|
| 18 |
|
---|
| 19 | module.exports = listCacheGet;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.