projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
67b45b53c8d9b90e0318129634a13b979cfa1b28
[yaffs-website]
/
node_modules
/
underscore.string
/
strRight.js
1
var makeString = require('./helper/makeString');
2
3
module.exports = function strRight(str, sep) {
4
str = makeString(str);
5
sep = makeString(sep);
6
var pos = !sep ? -1 : str.indexOf(sep);
7
return~ pos ? str.slice(pos + sep.length, str.length) : str;
8
};