summaryrefslogtreecommitdiff
path: root/node_modules/locutus/golang/strings/Index2.js.map
blob: b00e5a3a592245b89513564e68c75a8eee35fd52 (plain) (blame)
1
{"version":3,"sources":["../../../src/golang/strings/Index2.js"],"names":["module","exports","Index","s","sep","indexOf"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,KAAT,CAAgBC,CAAhB,EAAmBC,GAAnB,EAAwB;AACvC;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAO,CAACD,IAAI,EAAL,EAASE,OAAT,CAAiBD,GAAjB,CAAP;AACD,CATD","file":"Index2.js","sourcesContent":["module.exports = function Index (s, sep) {\n  //  discuss at: http://locutus.io/golang/strings/Index\n  // original by: Kevin van Zonneveld (http://kvz.io)\n  //   example 1: Index('Kevin', 'K')\n  //   returns 1: 0\n  //   example 2: Index('Kevin', 'Z')\n  //   returns 2: -1\n\n  return (s + '').indexOf(sep)\n}\n"]}