Ragic Java version of IsContained or Instr

Is there a function in the Javascript Workflow Engine the replicates the Java function IsContained or the VBA function Instr(. I want to see if text A is contained in text B.

var str = “Hello World”;
var testResult = str.includes(“World”);

// testResult = “True”