-
-
Save theburningmonk/cf2758f793200b23663bc1789ec0d0ec to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const http = require('axios') | |
module.exports.handler = async (urls) => { | |
let sum = 0 | |
for (let i = 0; i < urls.length; i++) { | |
const url = urls[i] | |
const body = (await http.get(url)).data | |
sum += body.length | |
} | |
return sum | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment