Suchjs Official Site

Reference type

Suchjs built-in type, which can refer to other data fields, etc. For details, see :ref type document

Demo

  • Such.as({"first": ":number", "second":":ref:&./first"})
  • Such.as({"first": ":lowercase:{3,5}", "second":":uppercase:{3,5}", "third":":ref:&./first,./second"})
  • Such.as({"firstName": ":lowercase:{3,5}", "lastName":":lowercase:{3,5}", "fullName":":ref:&./firstName,./lastName:@join(' ')"})