Here is the code I am using in a larger function:
this.categoriesToSearch = ko.observableArray(["Food"]);// Initial selection
console.log(this.categoriesToSearch[0]);
Running this returns undefined. Knockout.js documentation says observableArrays are supposed to be read that way. Is there a better way to read observableArrays?