We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b985d4e commit 0bd21f7Copy full SHA for 0bd21f7
index.ts
@@ -311,6 +311,8 @@ export function filterFn<T>(
311
return array => filter(array, predicate);
312
}
313
314
+/** @deprecated This function is confusing, use {@link excludeFirst} instead,
315
+ * and invert the predicate. */
316
export function filterFirst<T>(
317
array: ArrayLike<T>,
318
predicate: (element: T, index: number) => boolean
@@ -331,6 +333,8 @@ export function filterFirst<T>(
331
333
return result;
332
334
335
336
+/** @deprecated This function is confusing, use {@link excludeFirstFn} instead,
337
338
export function filterFirstFn<T>(
339
340
): (array: ArrayLike<T>) => T[] {
0 commit comments