declare function times<T>(n: number, fn: (n: number) => T, ctx?: any): T[];

export = times;
