cursed max

Anonymous
javascript
10/27/2021 6:31 AM
416 B
31
Indexable
export default async function handler(req, res) {
    const esi = new Esi();
    esi.get_orders()
        .then((resp) => resp.json())
        .then((json) => json.map((current) => current.price))
        .then((price_list) => Math.max(...price_list))
        .then((max) => res.status(200).send(max));

    
}
Editor is loading...