diff --git a/index.js b/index.js index eaf5b25..5ed9e32 100644 --- a/index.js +++ b/index.js @@ -14,7 +14,7 @@ var required = require('requires-port') * @public */ function trimLeft(str) { - return (str || '').replace(left, ''); + return (str ? str.toString() : '').replace(left, ''); } /**