Skip to content

Instantly share code, notes, and snippets.

View alexGuerraDev's full-sized avatar
🏠
Working from home

Alex Guerra alexGuerraDev

🏠
Working from home
View GitHub Profile
-----------------------------------------------------------------------------------------------------
// OPTIMIZACION DE CODIGO
-----------------------------------------------------------------------------------------------------
//Problema 1
//Suponiendo que el modulo implementado de HTTP es de la libreria por defecto de NODEJS
const HTTP = require('http')
let getSomeData = (url_api) => {
return new Promise((resolve, reject) => {
HTTP.get(url_api, (res) => {