j
function getResult(str) {
let zxc = str.split('\/\/'),
props = zxc[0].split`/`
return zxc.slice(1).map( (c,i) => {temp = c.split`/`; return Object.assign( ...temp.map((x,i) => ({[props[i]]:x})) )})
}
удачи на новой работе)))))
Size: a a a
j
function getResult(str) {
let zxc = str.split('\/\/'),
props = zxc[0].split`/`
return zxc.slice(1).map( (c,i) => {temp = c.split`/`; return Object.assign( ...temp.map((x,i) => ({[props[i]]:x})) )})
}
bz
bz
NC
j
bz
AE
j
M
M
M
AE
j
К
M
К
КК