hasOneOf # if (data.otherDescArr.some(_ => '7'.indexOf(_) > -1)) {

 

if (data.otherDescArr.some(_ => '7'.indexOf(_) > -1)) {

  

export const hasOneOf = (targetarr, arr) => {
  return targetarr.some(_ => arr.indexOf(_) > -1)
}

 

posted @ 2019-03-25 15:09  彭成刚  阅读(240)  评论(0编辑  收藏  举报