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