find() は、
配列の中から、条件に合う最初の1個を探して返す
const category = categories.find((category) => {
return category.value === value
})
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
find() は、
配列の中から、条件に合う最初の1個を探して返す
const category = categories.find((category) => {
return category.value === value
})
Register as a new user and use Qiita more conveniently
Go to list of users who liked