zad 02,03 #37

Closed
s426159 wants to merge 14 commits from s426159/DALGLI0:master into master
Showing only changes of commit e6cdf94fc5 - Show all commits

View File

@ -2,10 +2,11 @@ let Polynomial = require('./polynomial.js');
let mul, div, gcd;
function parseArray(x) {
let stringResult = "";
result = Array.from(x).filter(x => {
if (x == ' ' || x == '[' || x == ']' || x == ',') return false;
if (x == ' ' || x == '[' || x == ']') return false;
else return true;
}).map(x => parseInt(x));
}).join('').split(',').map(x => parseInt(x));
return result;
}