mirror of
https://github.com/dzeiocom/libs.git
synced 2025-06-07 16:49:56 +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
|
* @param count number of spaces to add
|
||||||
*/
|
*/
|
||||||
private buildSpace(count: number): string {
|
private buildSpace(count: number): string {
|
||||||
let str = ''
|
return ''.padStart(count, ' ')
|
||||||
for(let i = 0; i < count; i++) {
|
|
||||||
str += ' '
|
|
||||||
}
|
|
||||||
return str
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user