Join all elements of an array with a glue
.
You can set a optional string to serve as a glue between array's elements.
glue
or en empty string if glue
is undefined.it('should join with a glue.', function(done) {
var tool = Matis.tools.Join(",");
tool.exec(
{array: ['a', 'b', 'c']},
function(outputs) {
expect(outputs.text).toBe("a,b,c");
done();
}
);
});