# 数组去重

function unique(array) {
  return array.filter((item, index) => array.indexOf(item) === index);
}
Last Updated: 5/22/2022, 3:57:36 PM