Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Never Mix Promises and Callbacks in NodeJS. Parent comment
For golfing purposes, you can remove a branch too:
function fetchFirstUser(isWhatIWant, callback) { knex.first().from('users') .then((user) => ({ user }), (e) => ({ e })) .then(({ user, e }) => callback(e, user)) .catch((e) => console.error(e)); }
There are no comments on this comment yet.
For golfing purposes, you can remove a branch too: