repeat

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

Created by: hackvertor
Installed 1 times

Category: String

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

Updated on: Tuesday, September 24, 2024 at 8:33:48 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);
  }
}