• 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.

    Example

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

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

    Returns Dictionary<any>

    See

    _.fromPairs

Generated using TypeDoc