sp/js/app.js
/**
   * Merge an Array of Objects into a single Object.
   */
Merge an Array of Objects into a single Object.
Merge an Array of Objects into a single Object .
function toObject(arr) {
    var res = {};
    for (var i = 0; i < arr.length; i++) {
      if (arr[i]) {
        extend(res, arr[i]);
      }
    }
    return res;
  }
function toObject ( arr ) { var res = { } ; for ( var i = 0 ; i < arr . length ; i ++ ) { if ( arr [ i ] ) { extend ( res , arr [ i ] ) ; } } return res ; }
Merge an Array of Objects into a single Object.
Merge an Array of Objects into a single Object .