Is there a way to perform the javascript join function in a observableArray?
In javascript i can do the following:
var a = ["1", "2", "3"];
var p = a.join(',');
and p would be "1,2,3" but with knockout i cant found a way to do this action?
Is there a way to perform the javascript join function in a observableArray?
In javascript i can do the following:
var a = ["1", "2", "3"];
var p = a.join(',');
and p would be "1,2,3" but with knockout i cant found a way to do this action?
Share Improve this question asked Jun 26, 2013 at 14:39 Phoenix_uyPhoenix_uy 3,30410 gold badges59 silver badges106 bronze badges1 Answer
Reset to default 7var x = ko.observableArray(["1", "2", "3"]);
var p = x().join(',');