Answers for ".includes in typescript"

2

typescript string contains

const test = 'Hello World';
if (test.includes('World')) { 
  // Found world
}
Posted by: Guest on May-28-2020
2

see if array contains array javascript

const found = arr1.some(r=> arr2.indexOf(r) >= 0)
Posted by: Guest on April-30-2020

Code answers related to "TypeScript"

Browse Popular Code Answers by Language