Files
catmk2/task1/utils/isCellEmpty.js
louiscklaw e46f1afc57 update,
2025-02-01 02:00:23 +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);
}
}