Function minByProperty

  • Computes the minimum of the values of the property for each element in the array.

    Type Parameters

    Parameters

    Returns number

    The minimum value.

    Since

    1.0.0

    Example

    minByProperty([{ a: 1 }, { a: 2 }, { a: 3 }], "a"); // => 1