引入
import _ from 'lodash'
isRepeat(arr){
const newArr = _.uniqBy(arr,'tagValue')
return Array.from(newArr).length === Array.from(arr).length
},
vue数组对象去重
最新推荐文章于 2024-04-24 19:02:49 发布
引入
import _ from 'lodash'
isRepeat(arr){
const newArr = _.uniqBy(arr,'tagValue')
return Array.from(newArr).length === Array.from(arr).length
},