Commit e971b59e authored by Ahmad Nemati's avatar Ahmad Nemati

git pu

parent 118739ce
...@@ -18,8 +18,9 @@ async function work() { ...@@ -18,8 +18,9 @@ async function work() {
let arr = [] let arr = []
for (let j = 0; j < 1000; j++) { for (let j = 0; j < 1000; j++) {
try { try {
if (parseFloat(directory[j + i].split('Y')[0].split('-')[1]) <=year)
if ((j + i) < directory.length) if ((j + i) < directory.length)
if (parseFloat(directory[j + i].split('Y')[0].split('-')[1]) <=year)
arr.push(directory[j + i]) arr.push(directory[j + i])
} catch (e) { } 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