Lines Matching refs:length
32 print(arr.length)
35 print(arr.length)
45 print(arr.length);
116 get length() {
117 print("get length");
120 set length(x) {
121 print("set length", x);
161 arr.length = 10;
170 get length() {
171 print("get length");
174 set length(x) {
175 print("set length", x);
208 let res = Array.from({length : 3}, () => {});
213 let res = Array.from({length : 3}, () => ({}));
218 let res = Array.from({length : 3}, () => []);
223 let res = Array.from({length : 3}, () => [1,2,3]);
228 let res = Array.from({length : 3}, () => 0);
235 let res = Array.from({length : len}, () => num);
236 print(res.length == len);
238 for (let i = 0; i < res.length; ++i) {
258 let arrayLike = {0:1.1, 1:12, 2:'ss', length: 3}
264 let res = Array.from({length : 3}, (_, index) => [index * 2]);
270 let res = Array.from.call(nonConstructor, {length : 3}, (_, index) => [index * 2]);
281 print(res.length == len);
283 for (let i = 0; i < res.length; ++i) {
320 for (let i = 0; i < res.length; ++i) {
326 if (res.length == len && flag) {