index.js
function getMarketCaps() {

    return new Promise(function (resolve, reject) {

        scraper
            .get(urlMarketCap)
            .then(function(tableData) {
                const coinmarketcapTable = tableData[0];
                resolve(getAllMarketCaps(coinmarketcapTable));
            });
    });
}
function getMarketCaps() {

    return new Promise(function (resolve, reject) {

        scraper
            .get(urlMarketCap)
            .then(function(tableData) {
                const coinmarketcapTable = tableData[0];
                resolve(getAllMarketCaps(coinmarketcapTable));
            });
    });
}
function getMarketCaps ( ) { return new Promise ( function ( resolve , reject ) { scraper . get ( urlMarketCap ) . then ( function ( tableData ) { const coinmarketcapTable = tableData [ 0 ] ; resolve ( getAllMarketCaps ( coinmarketcapTable ) ) ; } ) ; } ) ; }
Return array of market capitalizations, in order of size.
Return array of market capitalizations in order of size .