Break down relay utils, replace removeNil with removeUndefined
This commit is contained in:
@@ -776,7 +776,7 @@ export const toIterable = (x: any) => (isIterable(x) ? x : [x])
|
||||
export const ensurePlural = <T>(x: T | T[]) => (x instanceof Array ? x : [x])
|
||||
|
||||
/** Ensures values are not undefined */
|
||||
export const removeNil = <T>(xs: T[]) => xs.filter(isDefined).map(assertDefined)
|
||||
export const removeUndefined = <T>(xs: T[]) => xs.filter(isDefined).map(assertDefined)
|
||||
|
||||
/** Returns a list of overlapping pairs of elements in xs */
|
||||
export const overlappingPairs = <T>(xs: T[]): T[][] => {
|
||||
|
||||
Reference in New Issue
Block a user