• The inverse of _.toPairs; this method returns an object composed from key-value pairs.

    Type Parameters

    • T

    Parameters

    • pairs: undefined | null | List<[PropertyName, T]>

      The key-value pairs.

    Returns Dictionary<T>

    Returns the new object.

    _.fromPairs([['fred', 30], ['barney', 40]]);
    // => { 'fred': 30, 'barney': 40 }
  • Parameters

    • pairs: undefined | null | List<any[]>

    Returns Dictionary<any>

    _.fromPairs