UNPKG

@lillallol/dic

Version:

My own dependency injection container.

14 lines (13 loc) 365 B
/** * @description * It returns the index of the first duplicate value it encounters in the array. * It returns `-1` when the array has no duplicates. * * - time complexity O(n) * - space complexity O(n) * * where n is the length of the provided array. */ export declare function getIndexOfFirstDuplicateValueOfArray(_: { array: unknown[]; }): number;