mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Rename _.trunc to _.truncate.
This commit is contained in:
committed by
John-David Dalton
parent
accb8e9b07
commit
5218fd2c24
@@ -268,7 +268,7 @@ function isJobId(value) {
|
||||
*/
|
||||
function logInline(text) {
|
||||
var blankLine = _.repeat(' ', _.size(prevLine));
|
||||
prevLine = text = _.trunc(text, { 'length': 40 });
|
||||
prevLine = text = _.truncate(text, { 'length': 40 });
|
||||
process.stdout.write(text + blankLine.slice(text.length) + '\r');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user