|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
400 bytes
|
| Line | |
|---|
| 1 | var isKeyable = require('./_isKeyable');
|
|---|
| 2 |
|
|---|
| 3 | /**
|
|---|
| 4 | * Gets the data for `map`.
|
|---|
| 5 | *
|
|---|
| 6 | * @private
|
|---|
| 7 | * @param {Object} map The map to query.
|
|---|
| 8 | * @param {string} key The reference key.
|
|---|
| 9 | * @returns {*} Returns the map data.
|
|---|
| 10 | */
|
|---|
| 11 | function getMapData(map, key) {
|
|---|
| 12 | var data = map.__data__;
|
|---|
| 13 | return isKeyable(key)
|
|---|
| 14 | ? data[typeof key == 'string' ? 'string' : 'hash']
|
|---|
| 15 | : data.map;
|
|---|
| 16 | }
|
|---|
| 17 |
|
|---|
| 18 | module.exports = getMapData;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.