Whether the value is a container.
const doc = new LoroDoc();const map = doc.getMap("map");const list = doc.getList("list");const text = doc.getText("text");isContainer(map); // trueisContainer(list); // trueisContainer(text); // trueisContainer(123); // falseisContainer("123"); // falseisContainer({}); // false Copy
const doc = new LoroDoc();const map = doc.getMap("map");const list = doc.getList("list");const text = doc.getText("text");isContainer(map); // trueisContainer(list); // trueisContainer(text); // trueisContainer(123); // falseisContainer("123"); // falseisContainer({}); // false
Whether the value is a container.
Example