Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
value: function setupColspanArray() {
var _this6 = this;
function checkIfExists(array, index) {
if (!array[index]) {
array[index] = [];
}
}
objectEach(this.settings, function (levelValue, level) {
objectEach(levelValue, function (val, col, levelValue) {
checkIfExists(_this6.colspanArray, level);
if (levelValue[col].colspan === void 0) {
_this6.colspanArray[level].push({
label: levelValue[col] || '',
colspan: 1,
hidden: false
});
} else {
var colspan = levelValue[col].colspan || 1;
_this6.colspanArray[level].push({
label: levelValue[col].label || '',
colspan: colspan,
hidden: false
fillTheRemainingColspans() {
objectEach(this.settings, (levelValue, level) => {
rangeEach(this.colspanArray[level].length - 1, this.hot.countCols() - 1, (col) => {
this.colspanArray[level].push({
label: levelValue[col] || '',
colspan: 1,
hidden: false
});
}, true);
});
}
objectEach(this.settings, function (levelValue, level) {
objectEach(levelValue, function (val, col, levelValue) {
checkIfExists(_this6.colspanArray, level);
if (levelValue[col].colspan === void 0) {
_this6.colspanArray[level].push({
label: levelValue[col] || '',
colspan: 1,
hidden: false
});
} else {
var colspan = levelValue[col].colspan || 1;
_this6.colspanArray[level].push({
label: levelValue[col].label || '',
colspan: colspan,
hidden: false
});
setupColspanArray() {
function checkIfExists(array, index) {
if (!array[index]) {
array[index] = [];
}
}
objectEach(this.settings, (levelValue, level) => {
objectEach(levelValue, (val, col, levelValue) => {
checkIfExists(this.colspanArray, level);
if (levelValue[col].colspan === void 0) {
this.colspanArray[level].push({
label: levelValue[col] || '',
colspan: 1,
hidden: false
});
} else {
let colspan = levelValue[col].colspan || 1;
this.colspanArray[level].push({
label: levelValue[col].label || '',
colspan: colspan,
objectEach(this.settings, (levelValue, level) => {
objectEach(levelValue, (val, col, levelValue) => {
checkIfExists(this.colspanArray, level);
if (levelValue[col].colspan === void 0) {
this.colspanArray[level].push({
label: levelValue[col] || '',
colspan: 1,
hidden: false
});
} else {
let colspan = levelValue[col].colspan || 1;
this.colspanArray[level].push({
label: levelValue[col].label || '',
colspan: colspan,
hidden: false
value: function fillTheRemainingColspans() {
var _this8 = this;
objectEach(this.settings, function (levelValue, level) {
rangeEach(_this8.colspanArray[level].length - 1, _this8.hot.countCols() - 1, function (col) {
_this8.colspanArray[level].push({
label: levelValue[col] || '',
colspan: 1,
hidden: false
});
}, true);
});
}