DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR TYPESCRIPT
ts repeat string
export function repeatStr(n: number, s: string): string { return ''.padStart(n * s.length, s); }
Source by www.codewars.com #
PREVIOUS
NEXT
Tagged:
#ts
#repeat
#string
ADD COMMENT
Topic
COMMENT
Name
3+4 =
Submit