@roomy-chat/sdk
    Preparing search index...

    Function isContainer

    • Whether the value is a container.

      Example

      const doc = new LoroDoc();
      const map = doc.getMap("map");
      const list = doc.getList("list");
      const text = doc.getText("text");
      isContainer(map); // true
      isContainer(list); // true
      isContainer(text); // true
      isContainer(123); // false
      isContainer("123"); // false
      isContainer({}); // false

      Parameters

      • value: any

      Returns value is Container