From 59fbc0d7fe04ef838655242a8855ae21d30d2376 Mon Sep 17 00:00:00 2001 From: DanielFGray Date: Thu, 27 Jun 2024 11:09:33 -0500 Subject: [PATCH] add: curry sql.join --- src/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/index.js b/src/index.js index 6102c76c..b563a021 100644 --- a/src/index.js +++ b/src/index.js @@ -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) }