meh321·10 lat temu·discussThe second example could be more concise IMHO: const twitter = { register: function(opts){ return request({ url: '...', method: 'POST', ...opts }); } } const resp = await twitter.register({ body }); EDIT: made it even more concise! -- back to real work :/
EDIT: made it even more concise! -- back to real work :/