UNPKG

272 BJavaScriptView Raw
1export default class SourceSet {
2 constructor (sources) {
3 this.sources = sources
4 }
5 toString = () => {
6 let output = ``
7 for (let width in this.sources) {
8 output = `${output}${this.sources[width]} ${width},
9`
10 }
11 return output.slice(0, -2)
12 }
13}