Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. const str = "big head/smallmouse/car";
  2. const strSplited = str.split("/");
  3. const condition = ['head','hand','foot']
  4.  
  5. console.log(condition.includes(strSplited[0]));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement