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 94feefd commit c7d1fc8Copy full SHA for c7d1fc8
index.ts
@@ -325,6 +325,8 @@ export function filterFn<T>(
325
return array => nativeFilter.call(array, predicate) as T[];
326
}
327
328
+/** @deprecated This function is confusing, use {@link excludeFirst} instead,
329
+ * and invert the predicate. */
330
export function filterFirst<T>(
331
array: ArrayLike<T>,
332
predicate: (element: T, index: number) => boolean
@@ -345,6 +347,8 @@ export function filterFirst<T>(
345
347
return result;
346
348
349
350
+/** @deprecated This function is confusing, use {@link excludeFirstFn} instead,
351
352
export function filterFirstFn<T>(
353
354
): (array: ArrayLike<T>) => T[] {
0 commit comments