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  彭成刚  阅读(247)  评论(0)    收藏  举报