forked from fdzcxy212206413/gsl_grs
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
363 B
16 lines
363 B
1 month ago
|
/**
|
||
|
* Adds the key-value `pair` to `map`.
|
||
|
*
|
||
|
* @private
|
||
|
* @param {Object} map The map to modify.
|
||
|
* @param {Array} pair The key-value pair to add.
|
||
|
* @returns {Object} Returns `map`.
|
||
|
*/
|
||
|
function addMapEntry(map, pair) {
|
||
|
// Don't return `map.set` because it's not chainable in IE 11.
|
||
|
map.set(pair[0], pair[1]);
|
||
|
return map;
|
||
|
}
|
||
|
|
||
|
export default addMapEntry;
|