range

This creates a range of numbers

Created by: hackvertor
Installed 1 times

Category: Math

Created on: Wednesday, September 25, 2024 at 9:15:25 PM

Updated on: Friday, December 20, 2024 at 8:08:04 PM

This is a built in tag
Tag arguments
[
   {
      "type": "number",
      "help": "This provides the start number",
      "defaultValue": "0"
   },
   {
      "type": "number",
      "help": "This provides the end number",
      "defaultValue": "0xff"
   }
]
Code
class range {
  encode(input, min, max) {
    return Array.from({ length: max - min + 1 }, (_, i) => min + i);
  }
}