Skip to content

Commit

Permalink
add: curry sql.join
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielFGray committed Jun 27, 2024
1 parent eba447a commit 59fbc0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,7 @@ function Postgres(a, b) {
}

function join(sep, xs) {
if (!xs) return join.bind(null, sep)
return xs.flatMap((x, i) => i ? [sep].concat(...x) : x)
}

Expand Down

0 comments on commit 59fbc0d

Please sign in to comment.