実効WPM0
WPM0
正確率100%
経過時間0s
時間—
文字数0
不正解0
ミス0
進捗0%

Shift + Enter · 開始 / やり直し

コードのお手本のガイドを読む
プログラミング言語
JavaScript
難易度
中級

Filter active records and return their names.

const users = [
  { name: "Ari", active: true },
  { name: "Bea", active: false },
  { name: "Kai", active: true },
];

const names = users
  .filter((user) => user.active)
  .map((user) => user.name);