PATH:
usr
/
local
/
lib
/
node_modules
/
bower
/
lib
/
node_modules
/
bower-config
/
node_modules
/
mout
/
string
var toString = require('../lang/toString'); var WHITE_SPACES = require('./WHITE_SPACES'); /** * Remove chars from beginning of string. */ function ltrim(str, chars) { str = toString(str); chars = chars || WHITE_SPACES; var start = 0, len = str.length, charLen = chars.length, found = true, i, c; while (found && start < len) { found = false; i = -1; c = str.charAt(start); while (++i < charLen) { if (c === chars[i]) { found = true; start++; break; } } } return (start >= len) ? '' : str.substr(start, len); } module.exports = ltrim;
[-] unescapeHtml.js
[edit]
[-] underscore.js
[edit]
[-] lowerCase.js
[edit]
[-] lpad.js
[edit]
[-] removeNonASCII.js
[edit]
[-] camelCase.js
[edit]
[+]
..
[-] truncate.js
[edit]
[-] upperCase.js
[edit]
[-] contains.js
[edit]
[-] WHITE_SPACES.js
[edit]
[-] hyphenate.js
[edit]
[-] insert.js
[edit]
[-] unhyphenate.js
[edit]
[-] replaceAccents.js
[edit]
[-] endsWith.js
[edit]
[-] sentenceCase.js
[edit]
[-] rtrim.js
[edit]
[-] escapeRegExp.js
[edit]
[-] properCase.js
[edit]
[-] rpad.js
[edit]
[-] replace.js
[edit]
[-] normalizeLineBreaks.js
[edit]
[-] escapeUnicode.js
[edit]
[-] crop.js
[edit]
[-] ltrim.js
[edit]
[-] startsWith.js
[edit]
[-] pascalCase.js
[edit]
[-] trim.js
[edit]
[-] removeNonWord.js
[edit]
[-] escapeHtml.js
[edit]
[-] slugify.js
[edit]
[-] stripHtmlTags.js
[edit]
[-] typecast.js
[edit]
[-] unCamelCase.js
[edit]
[-] interpolate.js
[edit]
[-] repeat.js
[edit]
[-] makePath.js
[edit]
[-] unescapeUnicode.js
[edit]