summaryrefslogtreecommitdiff
path: root/node_modules/locutus/golang/strings/LastIndex.js.map
blob: 8be0a842ba2648ac8cdd86c4425196d00416d13e (plain) (blame)
1
{"version":3,"sources":["../../../src/golang/strings/LastIndex.js"],"names":["module","exports","LastIndex","s","sep","parseInt","lastIndexOf"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,SAAT,CAAoBC,CAApB,EAAuBC,GAAvB,EAA4B;AAC3C;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAAOC,SAASF,EAAEG,WAAF,CAAcF,GAAd,CAAT,EAA6B,EAA7B,KAAoC,CAA3C;AACD,CAVD","file":"LastIndex.js","sourcesContent":["module.exports = function LastIndex (s, sep) {\n  //  discuss at: http://locutus.io/golang/strings/LastIndex\n  // original by: Kevin van Zonneveld (http://kvz.io)\n  //    input by: GopherJS (http://www.gopherjs.org/)\n  //   example 1: LastIndex('go gopher', 'go')\n  //   returns 1: 3\n  //   example 2: LastIndex('go gopher', 'rodent')\n  //   returns 2: -1\n\n  return parseInt(s.lastIndexOf(sep), 10) >> 0\n}\n"]}