add dropdown component
This commit is contained in:
@ -26,10 +26,7 @@ function padStart(s, num, char) {
|
||||
if (nullOrEmpty(s) || isNaN(num) || num <= s.length) {
|
||||
return s;
|
||||
}
|
||||
if (char == null) {
|
||||
char = ' ';
|
||||
}
|
||||
return char.repeat(num - s.length);
|
||||
return (char ?? ' ').repeat(num - s.length);
|
||||
}
|
||||
|
||||
export {
|
||||
|
Reference in New Issue
Block a user