Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
} catch (e) {
workingVal = ''
}
} else if (format !== 'General') {
try {
workingVal = ssf.format(format, Number(workingVal))
} catch (e) {
workingVal = ''
}
}
} else if (!isNaN(parseFloat(workingVal))) { // this is number
workingVal = parseFloat(parseFloat(workingVal)) // parse to float or int
}
this.workingRow.values[cellNum] = workingVal || ''
if (this.workBook.options.returnFormats) {
this.workingRow.formats[cellNum] = format || ssf.get_table()[formatId]
}
workingCell = {}
}
}
if (workingCell.name === 'v') {
var colNum = this.getColumnNumber(this.currentCell.attributes.r)
this.currentCell = {}
this.workingRow.values[colNum] = workingPart || ''
}
} else {
if (this.sheetData[nodeData[0].name]) {
if (!Array.isArray(this.sheetData[nodeData[0].name])) {
this.sheetData[nodeData[0].name] = [this.sheetData[nodeData[0].name]]
}