strpos.js 207 B

12345
  1. setup.qsp_strpos = (s, search, ...additionalArgs) => {
  2. if(additionalArgs[0])
  3. throw new Error("setup.qsp_strpos with more than 2 arguments is not implemented.");
  4. return s.indexOf(search)+1;
  5. }