Skip to content

Commit 59fbc0d

Browse files
committed
add: curry sql.join
1 parent eba447a commit 59fbc0d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -320,6 +320,7 @@ function Postgres(a, b) {
320320
}
321321

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

0 commit comments

Comments
 (0)