Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if string is substring of another string

function mutation(arr) {
  let first = arr[0];
  let second = arr[1];
  
  return first.indexOf(second) !== -1;
}

console.log(mutation(["hello", "hel"]));
Source by replit.com #
 
PREVIOUS NEXT
Tagged: #check #string #substring #string
ADD COMMENT
Topic
Name
4+5 =