Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

ts repeat string

export const repeatStr = (n: number, s: String): String => s["repeat"](n);
Source by www.codewars.com #
 
PREVIOUS NEXT
Tagged: #ts #repeat #string
ADD COMMENT
Topic
Name
8+9 =