es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
18 lines (13 loc) • 428 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const trimStart$1 = require('../../string/trimStart.js');
function trimStart(str, chars, guard) {
if (str == null) {
return '';
}
if (guard != null || chars == null) {
return str.toString().trimStart();
}
return trimStart$1.trimStart(str, chars.toString().split(''));
}
exports.trimStart = trimStart;