concat icon indicating copy to clipboard operation
concat copied to clipboard

concat not working with dynamic values

Open zabakala opened this issue 8 years ago • 1 comments

Hi. I have an issue I would like to resolve. When I explicitly use a string:

concat([..], "path/to/destinatin");

..then the concat works. But when I:

let path = "path/to/destinatin"; concat([..], path);

..then the concat does not work. What am I possibly doing wrong?

Variations that do not work either:

let path = String("path/to/destinatin"); concat([..], path);

let path = "path/to/destinatin".toString(); concat([..], path);

zabakala avatar Apr 14 '17 20:04 zabakala

Hi, sorry for late response.

I tried several options:

const concat = require('concat')

let path = "./test.js";
concat(['test1.js', 'test2.js'], path);

path = String("/home/gk/test.js");
concat(['test1.js', 'test2.js'], path);

And all worked. Can you please specify your node version and error that you're getting.

gko avatar Apr 22 '17 16:04 gko