Gets / sets the current object id. If no id is currently assigned and no id is passed to the method, it will automatically generate and assign a new id as a 16 character hexadecimal value typed as a string.
id (Stringid)
Stringid
Returns * Returns this when setting the value or the current value if none is specified.
Get the id of an entity
var entity = new IgeEntity();
console.log(entity.id());
Set the id of an entity
var entity = new IgeEntity();
entity.id('myNewId');