cursed max
unknown
javascript
4 years ago
310 B
18
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...