Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vitaly-t committed May 29, 2024
1 parent 9f07c68 commit 30f3d28
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions helpers_table-name.js.html
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,8 @@ <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-pg
* @see {@link helpers.TableName TableName}, {@link external:TemplateStringsArray TemplateStringsArray}
*/
function _TN(path, ...args) {
if (Array.isArray(path) &amp;&amp; path.raw) {
const v = i => i &lt; args.length ? args[i] ?? '' : '';
path = path.reduce((a, c, i) => a + c + v(i), '');
if (Array.isArray(path)) {
path = path.reduce((a, c, i) => a + c + (args[i] ?? ''), '');
} // else 'path' is a string
const [schema, table] = path.split('.');
if (table === undefined) {
Expand Down

0 comments on commit 30f3d28

Please sign in to comment.