mirror of
https://github.com/docmost/docmost.git
synced 2026-08-28 01:07:08 +08:00
Table and kanban UI, formula engine package, and the base-embed editor extension
12 lines
338 B
TypeScript
12 lines
338 B
TypeScript
import { register } from "./registry";
|
|
|
|
register({
|
|
name: "empty",
|
|
arity: { min: 1, max: 1 },
|
|
paramTypes: "any",
|
|
returnType: "boolean",
|
|
eval: ([v]) => v == null || v === "" || (typeof v === "object" && v !== null && "__err" in v),
|
|
doc: "Returns true if the value is null or empty string or an error.",
|
|
category: "logic",
|
|
});
|