Skip to content

Commit

Permalink
chore(toolkit/operators): remove deprecated pluckArray operator
Browse files Browse the repository at this point in the history
BREAKING CHANGE: RxJS operator `pluckArray` was deprecated and has been removed; use `mapArray` instead.
  • Loading branch information
Marcarrian authored and danielwiehl committed Nov 15, 2023
1 parent ac7f284 commit 6c84329
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions projects/scion/toolkit/operators/src/operators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,17 +67,6 @@ export function filterArray<T>(predicate?: (item: T) => Observable<boolean> | Pr
});
}

/**
* Maps each element in the source array to its extracted property.
*
* Like rxjs 'pluck' but based on an array with a function to extract the property.
*
* @deprecated since version 10.0.0-beta.3. Use {@link mapArray} instead.
*/
export function pluckArray<I, P>(extractor: (item: I) => P): OperatorFunction<I[] | readonly I[], P[]> {
return map((items: I[] | readonly I[]): P[] => items.map(item => extractor(item)));
}

/**
* Maps each element in the source array to its mapped value.
*/
Expand Down

0 comments on commit 6c84329

Please sign in to comment.