Generates a unique ID. If prefix is given, the ID is appended to it.
prefix
5.12.0
[[random]]
uniqueId('contact_')// => 'contact_104'uniqueId()// => '105' Copy
uniqueId('contact_')// => 'contact_104'uniqueId()// => '105'
The value to prefix the ID with.
Returns the unique ID.
Generates a unique ID. If
prefix
is given, the ID is appended to it.Since
5.12.0
See
[[random]]
Example