%PDF- %PDF-
Direktori : /home/opti/workflow/node_modules/underscore.string/ |
Current File : /home/opti/workflow/node_modules/underscore.string/truncate.js |
var makeString = require('./helper/makeString'); module.exports = function truncate(str, length, truncateStr) { str = makeString(str); truncateStr = truncateStr || '...'; length = ~~length; return str.length > length ? str.slice(0, length) + truncateStr : str; };