https://www.jianshu.com/p/d5f572dd3776

 Object.assign()

数组的扩展,两个数组的合并

const target = { a: 1 };

const source1 = { b: 2 };
const source2 = { c: 3 };

Object.assign(target, source1, source2);
target // {a:1, b:2, c:3}

 数组排序

let data =[ {
        "busiType": "06",
        "busiRmk": "个人业务",
        "queueAfix": "A"
      },
      {
        "busiType": "07",
        "busiRmk": "贵宾业务",
        "queueAfix": "V"
      },
      {
        "busiType": "08",
        "busiRmk": "对公业务",
        "queueAfix": "B"
      },
      {
        "busiType": "09",
        "busiRmk": "大堂经理",
        "queueAfix": "L"
      }];
   
          data.sort(function(a,b){
            // order是规则  objs是需要排序的数组
            var order = ["A", "V", "B", "L"];
            return order.indexOf(a.queueAfix) - order.indexOf(b.queueAfix);
          });