format_unique_key
Joins strings togther with a spearator in the aim of making a uniquely identifiable identifier. But does no checking for any type of unique-ness.
githubArguments
Name | Description | Type |
---|---|---|
values | Can be a collection of strings or a map. If it is a Map then the values are taken and joined togther. | strings or map |
sep | Separator to use that will join the string values togther. Deafults to " / “. | string |
Example
format_unique_key(['abc', 123])
// "abc / 123"
format_unique_key([foo:'abc', bar:123], sep='.')
// "abc.123"