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:
363 bytes
|
Rev | Line | |
---|
[d565449] | 1 | /**
|
---|
| 2 | * Adds the key-value `pair` to `map`.
|
---|
| 3 | *
|
---|
| 4 | * @private
|
---|
| 5 | * @param {Object} map The map to modify.
|
---|
| 6 | * @param {Array} pair The key-value pair to add.
|
---|
| 7 | * @returns {Object} Returns `map`.
|
---|
| 8 | */
|
---|
| 9 | function addMapEntry(map, pair) {
|
---|
| 10 | // Don't return `map.set` because it's not chainable in IE 11.
|
---|
| 11 | map.set(pair[0], pair[1]);
|
---|
| 12 | return map;
|
---|
| 13 | }
|
---|
| 14 |
|
---|
| 15 | export default addMapEntry;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.