iter-fns - v0.13.0
    Preparing search index...

    Interface SortOnKey<T, K>

    A definition of a key to sort on.

    interface SortOnKey<T, K> {
        cmp?: Compare<K>;
        (x: T, i: number): K;
    }

    Type Parameters

    • T

      type of the item

    • K

      type of the key

    • The projection.

      Parameters

      • x: T

        the item

      • i: number

        index of the item

      Returns K

    Index

    Properties

    Properties

    cmp?: Compare<K>

    The comparator.

    Defaults to compare.