sheetjs/bits/84_defaults.js

11 lines
300 B
JavaScript
Raw Normal View History

function fixopts(opts) {
var defaults = [
['cellNF', false], /* emit cell number format string as .z */
['sheetStubs', true], /* emit empty cells */
['WTF', false] /* WTF mode (do not use) */
];
defaults.forEach(function(d) { if(typeof opts[d[0]] === 'undefined') opts[d[0]] = d[1]; });
}