提交 a32bced7 编写于 作者: M mahaifeng

[array]去除手动生成的代码

上级 6d66d416
...@@ -149,7 +149,7 @@ export function testArray() : Result { ...@@ -149,7 +149,7 @@ export function testArray() : Result {
}) })
}) })
test("find", () => { test("find", () => {
// #TEST Array.find_1 // #TEST Array.find_2
const array1 : number[] = [5, 12, 8, 130, 44]; const array1 : number[] = [5, 12, 8, 130, 44];
const found1 = array1.find((element : number) : boolean => element > 10); const found1 = array1.find((element : number) : boolean => element > 10);
console.log(found1) //12 console.log(found1) //12
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册