NewDash

    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.

      5.5.0

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

      at(object, ['a[0].b.c', 'a[1]'])
      // => [3, 4]
    • Creates an array of values corresponding to paths of object.

      Parameters

      • object: any

        The object to iterate over.

      • paths: string[]

        The property paths to pick.

      Returns any[]

      Returns the picked values.

      5.5.0

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

      at(object, ['a[0].b.c', 'a[1]'])
      // => [3, 4]
    • 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.

      5.5.0

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

      at(object, ['a[0].b.c', 'a[1]'])
      // => [3, 4]
    • Creates an array of values corresponding to paths of object.

      Parameters

      • object: any

        The object to iterate over.

      • ...paths: string[]

        The property paths to pick.

      Returns any[]

      Returns the picked values.

      5.5.0

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

      at(object, ['a[0].b.c', 'a[1]'])
      // => [3, 4]
    • Creates an array of values corresponding to paths of object.

      Parameters

      • object: any

        The object to iterate over.

      • ...paths: any[]

        The property paths to pick.

      Returns any[]

      Returns the picked values.

      5.5.0

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

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