mirror of
https://github.com/dzeiocom/libs.git
synced 2025-04-22 10:52:11 +00:00
Optimized space builder
Signed-off-by: Florian Bouillon <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
bc02559a5b
commit
ff3ee6c7f4
@ -405,11 +405,7 @@ export default class Logger implements Console {
|
||||
* @param count number of spaces to add
|
||||
*/
|
||||
private buildSpace(count: number): string {
|
||||
let str = ''
|
||||
for(let i = 0; i < count; i++) {
|
||||
str += ' '
|
||||
}
|
||||
return str
|
||||
return ''.padStart(count, ' ')
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user