Interface ForEachOptions<T>

    interface ForEachOptions<T> {
        key?: (item: T, index: number) => unknown;
    }

    Type Parameters

    • T
    Index

    Properties

    Properties

    key?: (item: T, index: number) => unknown

    Stable identity per item; defaults to index (fine for fixed positions, makes swaps look like replacement).