This file contains 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
----------------------------------------------------------------------------------------------------- | |
// 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) => { |