Function at

  • Creates an array of values corresponding to paths of object.

    Parameters

    • object: any

      The object to iterate over.

    • paths: number[]

      The property paths to pick.

    Returns any[]

    Returns the picked values.

    Since

    5.5.0

    Example

    const object = { 'a': [{ 'b': { 'c': 3 } }, 4] }

    at(object, ['a[0].b.c', 'a[1]'])
    // => [3, 4]
  • Parameters

    • object: any
    • paths: string[]

    Returns any[]

  • Parameters

    • object: any
    • Rest ...paths: number[]
      Rest

    Returns any[]

  • Parameters

    • object: any
    • Rest ...paths: string[]
      Rest

    Returns any[]

  • Parameters

    • object: any
    • Rest ...paths: any[]
      Rest

    Returns any[]