forked from FoundKeyGang/FoundKey
Use consistent naming convention
This commit is contained in:
parent
e88ce1746d
commit
534de24406
1 changed files with 2 additions and 2 deletions
|
@ -22,8 +22,8 @@ export function erase<T>(x: T, xs: T[]): T[] {
|
||||||
* Finds the array of all elements in the first array not contained in the second array.
|
* Finds the array of all elements in the first array not contained in the second array.
|
||||||
* The order of result values are determined by the first array.
|
* The order of result values are determined by the first array.
|
||||||
*/
|
*/
|
||||||
export function difference<T>(includes: T[], excludes: T[]): T[] {
|
export function difference<T>(xs: T[], ys: T[]): T[] {
|
||||||
return includes.filter(x => !excludes.includes(x));
|
return xs.filter(x => !ys.includes(x));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function unique<T>(xs: T[]): T[] {
|
export function unique<T>(xs: T[]): T[] {
|
||||||
|
|
Loading…
Reference in a new issue