Notion Helper - v1.3.29
    Preparing search index...

    Function getDepth

    • Checks a provided array of child blocks to see how many nested levels of child blocks are present. Used by requests.blocks.children.append to determine if recursive calls need to be used.

      Parameters

      • arr: Object[]

        The array of child blocks to be depth-checked.

      • Optionallevel: number = 0

        The current level.

      Returns number