約122件1ページ目

日本語のみで絞り込む

2026/10/26 -The repeat() method of String values constructs and returns a new string which contains the specified number of copies of this string, ...

2009/12/9 -So this is a polyfill for the native repeat, then? Just add an if (!String.prototype.repeat) { to the beginning and } to the end.

The repeat() method returns a new string. The repeat() method does not change the original string. Syntax. string.repeat(count). Parameters ...

2022/8/23 -We're going to use a for loop to repeat the string n times. We'll use a char[] array to store the repeated string. Then we'll use the CopyTo ...

2025/7/24 -I'm trying to resolve a challenge from hacker rank and the first step is to repeat a string n times, but when I try String(repeating: n, ...

2025/4/28 -In TypeScript the repeat() method helps in generating a new string by replicating the original string up to a certain number of iterations.

2017/2/13 -The **repeat()** method constructs and returns a new string which contains the specified number of copies of the string on which it was called, ...

2024/11/14 -Simple String Repetition · Define a string that you want to repeat. · Call the repeat() method, specifying the number of times the string should ...

2020/6/28 -Personally, I'd prefer something like "string".repeated(10) (or repeating/repeat whatever fits best) to repeat the string 10 times. 2 Likes.

Here is a simple one liner to repeat a string multiple times with a separator: <?php implode($separator, array_fill(0, $multiplier, $input)); ?> Example script: ...