Array firstly returns only first items
which are matched.
For Example
var findSelectedCodeSetFromLabel = function (label, codeSet) {
try {
if (codeSet != null && codeSet.length > 0) {
return
ko.utils.arrayFirst(codeSet, function (item) {
return (item.Label.toLowerCase().indexOf(label.toLowerCase())
> -1);
});
};
}
catch (ex) {
logExceptions(ex);
}
};