title: Pass the array from one fuction's callback to another
body: <p>Is it possible to pass from one function's callback array to another function?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>loadData: function() {
      var me = this;
      Ext.Ajax.request({
        url: utils.createUrl('api', 'dashboard-read'),
        async: true,
        callback: function(opts, success, response) {
  
          if (success) {
            var output = App.decodeHttpResp(response.responseText);
            const data = output.data;
            me.hrer
            let myArr = [];
            data.map((date) =&gt;
              myArr = Object.keys(date).filter(key =&gt; key != 'DATE'));
          }
        }
      });
    },
  
  
  
    loadChart: function() {
      var me = this;
      Ext.apply(me, {
            items: [{ ....
  
                }</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here I want to pass myArr to loadChart in extjs. Possible. 
  Thanks in advance</p>