add(server.tests.test2): 添加实验2的内容,将pdf里面标重要的进行提取出来
This commit is contained in:
15
Server/tests/test2/important/some.js
Normal file
15
Server/tests/test2/important/some.js
Normal file
@@ -0,0 +1,15 @@
|
||||
// some(callbackFn)
|
||||
|
||||
const stus = [{ name: '张三', score: 59 }, { name: '老钟', score: 95 }];
|
||||
let rst = stus.some((item) => {
|
||||
return item.score < 60
|
||||
})
|
||||
|
||||
// 是否存在不及格的学生
|
||||
console.log(rst)
|
||||
|
||||
|
||||
/*
|
||||
# node some.js
|
||||
true
|
||||
*/
|
||||
Reference in New Issue
Block a user