@custouch/jssdk
    Preparing search index...

    Function loop

    • 递归遍历

      Type Parameters

      • T extends any[]

      Parameters

      • data: T
      • callback: (item: T[number], arr: T, pItem?: T[number]) => boolean | void
      • Optionalkey: string = 'children'

      Returns undefined | T[number]

      {(T[number] | undefined)}