| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 1× 1× 4× 1× | const stringifyMediaValue = require("./stringifyMediaValue");
/**
* Creates a string from objects containing media values. Such a string may
* be used as the value of the Accept* family of HTTP headers.
*/
function stringifyMediaValues(values, typeSeparator) {
return values.map(function (mediaValue) {
return stringifyMediaValue(mediaValue, typeSeparator);
}).join(", ");
}
module.exports = stringifyMediaValues;
|