Files
004_comission/catmk2/task1/utils/isCellEmpty.js
louiscklaw abff74fd77 update,
2025-01-31 19:29:24 +08:00

13 lines
344 B
JavaScript

function isCellEmpty(cell) {
var output = { state: "init", debug: {}, error: {} };
try {
// console.log("isCellEmpty:" + cell.getValue());
var temp = cell.getValue().toString().trim();
return temp == "";
} catch (error) {
console.log("isCellEmpty error");
output = { ...output, error };
console.log(output);
}
}