4.17.11
3.10.1
2.4.2
1.3.1
_.uniqueId([prefix=''])
Generates a unique ID. If prefix
is given, the ID is appended to it.
Since
0.1.0
Arguments
argument
[prefix='']
type
string
description
The value to prefix the ID with.
Returns
(array)
Example
_.uniqueId("contact_");
// => 'contact_104'
_.uniqueId();
// => '105'
_.uniqueId("contact_");
// => 'contact_104'
_.uniqueId();
// => '105'