projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Further modules included.
[yaffs-website]
/
node_modules
/
underscore.string
/
strLeft.js
1
var makeString = require('./helper/makeString');
2
3
module.exports = function strLeft(str, sep) {
4
str = makeString(str);
5
sep = makeString(sep);
6
var pos = !sep ? -1 : str.indexOf(sep);
7
return~ pos ? str.slice(0, pos) : str;
8
};