Function each

  • Iterate over Object properties or array elements.

    Parameters

    • obj: any

      Object, Array or null

    • callback: (index: string | number, item: any) => boolean | void

      called for every item. this also contains the item. Return false to stop the iteration.

    Returns any