Suchjs Official Site

Auto-increment type

Suchjs built-in type, the auto-increment type can configure the starting value and step of the increase, and can be used to achieve an incremental array by setting the length. For details, see :increment type document

Demo

  • Such.as({"list{1,5}": {"id":":increment"}})
  • Such.as({"list{1,5}": {"id":":increment:#[start=2]"}})
  • Such.as({"list{1,5}": {"id":":increment:#[start=2,step=2]"}})
  • Such.as({"range":":increment:#[start=1.5,step=2]:{2,5}"})