arrayFirst Array firstly returns only first items which are matched.

Knockout js Array First

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);
          }
  };
ANIL SINGH

Anil Singh is an author, tech blogger, and software programmer. Book writing, tech blogging is something do extra and Anil love doing it. For more detail, kindly refer to this link..

My Tech Blog - https://www.code-sample.com/
My Books - Book 1 and Book 2

www.code-sample.com/. Powered by Blogger.
^