Every line of 'json to excel python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.
10 readSheet(sheet){ 11 let excel = this.readFile(); 12 if(typeof sheet === 'number'){ 13 return XLSX.utils.sheet_to_json(excel.Sheets[excel.SheetNames[sheet]]); 14 } else if(typeof sheet === 'string'){ 15 return XLSX.utils.sheet_to_json(excel.Sheets[sheet]); 16 } else { 17 return null; 18 } 19 }