WIP - add extractor, generate snippet_data
This commit is contained in:
8
node_modules/underscore.string/strLeft.js
generated
vendored
Normal file
8
node_modules/underscore.string/strLeft.js
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
var makeString = require('./helper/makeString');
|
||||
|
||||
module.exports = function strLeft(str, sep) {
|
||||
str = makeString(str);
|
||||
sep = makeString(sep);
|
||||
var pos = !sep ? -1 : str.indexOf(sep);
|
||||
return~ pos ? str.slice(0, pos) : str;
|
||||
};
|
||||
Reference in New Issue
Block a user