Matis 0.1.0

Multi-level Asynchrounous Tools Interconnection System.

tools.Join

Join all elements of an array with a glue.

Options

You can set a optional string to serve as a glue between array's elements.

Inputs

Outputs

Example

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();
        }
    );
});