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

Hey! I'm Anil Singh. I author this blog. I'm Active Blogger, Programmer. I love learning new technologies, programming, blogging and participating the forum discussions more...
http://www.code-sample.com
http://www.code-sample.xyz

You Might Also Like
Post a Comment
www.code-sample.com/. Powered by Blogger.