title: Failing to push to Knockout observable array
body: <p>I'm trying to push some data to a KO observable array.  I'm getting data from my AJAX call and I get no errors when my script executes.  However, if I try to access <code>userNames</code>, I get an empty array.  What am I missing here?</p>
  
  <pre><code>UserHandler = (function () {
      var userName = function (data) {
              this.Name = data;
          };
  
      var userNames = ko.observableArray([]);
  
      var getUserNames = function () {
              userNames([]);
              $.ajax({
                  url: "Users/All",
                  dataType: "json",
                  success: function (data) {
                      ko.utils.arrayPushAll(userNames, $.map(data, function (entry) {
                          return new userName(entry);
                      }));
                  }
              });
          };;
  
      return {
          UserNames: userNames,
          GetUserNames: getUserNames,
      };
  
  });
  
  console.log(UserHandler().UserNames());
     --&gt; []
  </code></pre>