(...arrays: T[][])
| 1 | // Inspired by https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_difference |
| 2 | export function difference<T>(...arrays: T[][]): T[] { |
| 3 | return arrays.reduce((a, b) => a.filter(c => !b.includes(c))) |
| 4 | } |
| 5 | |
| 6 | // Inspired by https://github.com/you-dont-need/You-Dont-Need-Lodash-Underscore#_sortby-and-_orderby |
| 7 | export function sortBy<T>(array: T[], getter: (item: T) => string | number | boolean): T[] { |
nothing calls this directly
no outgoing calls
no test coverage detected