Takaro - v0.4.11
    Preparing search index...

    Function fromPairs

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

      Type Parameters

      • T

      Parameters

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

        The key-value pairs.

      Returns Dictionary<T>

      Returns the new object.

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

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

      Returns Dictionary<any>

      _.fromPairs