VL
const req = http.request(options, response => {
response.on('data', chunk => {
console.log(JSON.parse(chunk))
})
response.on('end', () => {
})
})
как сделать так что бы функция, в которой этот код, вернула chunk переменную
Size: a a a
VL
KA
let resChunk = response.on('data', chunk => {
return JSON.parse(chunk)
})ym
let resChunk = response.on('data', chunk => {
return JSON.parse(chunk)
})KA
DS
DS
DS
DS
DS
VL
DS
A
MF
MF
᠌
N
VL
N
N