thesuhu

Javascript Text

Jul 31st, 2021
927
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # cek apakah pesan mengandung potongan kalimat
  2. var msg = `Can't find dataPath: /collection/github. Stopped at collection`
  3. var txt = `Stopped at collection`
  4. if (msg.includes(txt)) {
  5.    console.log('Contains sentences')
  6. } else {
  7.    console.log('Not contains sentences')
  8. }
RAW Paste Data