js中的变异数组

[
  'push',
  'pop',
  'shift',
  'unshift',
  'splice',
  'sort',
  'reverse'
]

以上几个数组的方法会改变原数组,称之为数组的变异方法。

原文地址:https://www.cnblogs.com/billyu/p/10071006.html