J
Size: a a a
J
В
L
DE
DE
L
DE
L
Array.prototype.sameStructureAs = function(other) {решил
return Array.isArray(other) &&
this.length === other.length &&
this.every((v, i) =>
!Array.isArray(v) || v.sameStructureAs(other[i]))
}
S
Array.prototype.sameStructureAs = function(other) {решил
return Array.isArray(other) &&
this.length === other.length &&
this.every((v, i) =>
!Array.isArray(v) || v.sameStructureAs(other[i]))
}
L
DE
DE
DE
L
var i = 0;
Array.prototype.sameStructureAs = function (other) {
i++;
switch(i){
case 1: case 2: case 5: case 7: case 10:
return true;
case 3: case 4: case 6: case 8: case 9:
return false;
}
};
S
var i = 0;
Array.prototype.sameStructureAs = function (other) {
i++;
switch(i){
case 1: case 2: case 5: case 7: case 10:
return true;
case 3: case 4: case 6: case 8: case 9:
return false;
}
};
DE