Hex Core JS
    Preparing search index...

    Function boundsOfKey

    • Returns the minimum and maximum value of a key in an array of objects. The given key must map to a number.

      Type Parameters

      • T extends Record<any, any>

      Parameters

      • array: T[]

        Array of objects to check.

      • key: KeyWithValueType<T, number>

        The key to check for values.

      Returns { max: number | undefined; min: number | undefined }