find() 方法返回数组中满足提供的测试函数的第一个元素的值。否则返回 undefined。
find()
undefined
const found = array1.find(element => element > 10);
posted on 2021-08-07 16:31 screamo 阅读(26) 评论(0) 编辑 收藏 举报
Powered by: 博客园 Copyright © 2024 screamo Powered by .NET 9.0 on Kubernetes