Open benjie opened 11 months ago
Might be able to borrow something from babel for this?
step.orderBy({ codec: attribute.codec, fragment: sql`${step.alias}.${sql.identifier(attributeName)}`, direction: "DESC", ...(undefined != null ? { nulls: undefined ? "LAST" : "FIRST" } : null)
Here undefined != null will always be falsy, so we can simplify the parens down to ...(null) which we can then eliminate.
undefined != null
...(null)
Might be able to borrow something from babel for this?
Here
undefined != null
will always be falsy, so we can simplify the parens down to...(null)
which we can then eliminate.