repeat

This tag repeats the input the number of times in the amount argument

Created by: hackvertor
Installed 1 times

Viewed: 88

Category: String

Created on: Tuesday, September 24, 2024 at 8:33:48 PM

Updated on: Thursday, May 22, 2025 at 6:49:44 PM

This is a built in tag
Tag arguments
[
   {
      "type": "number",
      "help": "This is the amount to repeat",
      "defaultValue": "0xff"
   }
]
Code
class repeat {
  encode(input, amount) {
    return input.repeat(amount);
  }
}