Commit e971b59e authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 118739ce
......@@ -18,8 +18,9 @@ async function work() {
let arr = []
for (let j = 0; j < 1000; j++) {
try {
if (parseFloat(directory[j + i].split('Y')[0].split('-')[1]) <=year)
if ((j + i) < directory.length)
if (parseFloat(directory[j + i].split('Y')[0].split('-')[1]) <=year)
arr.push(directory[j + i])
} catch (e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment