For example, the original array returned ten attributes, you want two, but also and attribute names are not the same as before, you can write similar to the following wording:
const users = result.map(item => ({ name: item.login, avatarUrl: item.avatar_url, url: item.html_url }));
Wherein ({}) is written, similar to the wording return {}