summaryrefslogtreecommitdiff
path: root/node_modules/locutus/php/strings/chop.js.map
blob: 6164674ac642c357e626db524d1f43d2fd683546 (plain) (blame)
1
{"version":3,"sources":["../../../src/php/strings/chop.js"],"names":["module","exports","chop","str","charlist","rtrim","require"],"mappings":";;AAAAA,OAAOC,OAAP,GAAiB,SAASC,IAAT,CAAeC,GAAf,EAAoBC,QAApB,EAA8B;AAC7C;AACA;AACA;AACA;;AAEA,MAAIC,QAAQC,QAAQ,kBAAR,CAAZ;AACA,SAAOD,MAAMF,GAAN,EAAWC,QAAX,CAAP;AACD,CARD","file":"chop.js","sourcesContent":["module.exports = function chop (str, charlist) {\n  //  discuss at: http://locutus.io/php/chop/\n  // original by: Paulo Freitas\n  //   example 1: chop('    Kevin van Zonneveld    ')\n  //   returns 1: '    Kevin van Zonneveld'\n\n  var rtrim = require('../strings/rtrim')\n  return rtrim(str, charlist)\n}\n"]}