Blame view
node_modules/underscore.string/strRight.js
255 Bytes
f7563de62
|
1 2 3 4 5 6 7 8 |
var makeString = require('./helper/makeString'); module.exports = function strRight(str, sep) { str = makeString(str); sep = makeString(sep); var pos = !sep ? -1 : str.indexOf(sep); return~ pos ? str.slice(pos + sep.length, str.length) : str; }; |