提交 8f90479d 编写于 作者: M mahaifeng

[array]去除手动生成的代码(去掉方法下面的示例代码)

上级 359ab858
...@@ -146,6 +146,7 @@ export function testArray() : Result { ...@@ -146,6 +146,7 @@ export function testArray() : Result {
expect(array2.every(isBelowThreshold)).toEqual(false); expect(array2.every(isBelowThreshold)).toEqual(false);
}) })
test("fill", () => { test("fill", () => {
// #TEST Array.fill
const array1 : number[] = [1, 2, 3, 4]; const array1 : number[] = [1, 2, 3, 4];
let ret1 = array1.fill(0, 2, 4) let ret1 = array1.fill(0, 2, 4)
console.log(ret1); //[1, 2, 0, 0] console.log(ret1); //[1, 2, 0, 0]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册