src/object.js
/**
  * Returns an RFC4122 version 4 compliant but not cryptographically secure UUID
  *
  * @return UUID
  */
Returns an RFC4122 version 4 compliant but not cryptographically secure UUID
@return UUID
Returns an RFC4122 version 4 compliant but not cryptographically secure UUID @return UUID
uuidv4() {
    let mask = 'xxxxxxx'; 
    return mask.replace(/[xy]/g, function(c) {
        var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8);
        return v.toString(16);
      });
  }
uuidv4 ( ) { let mask = 'xxxxxxx' ; return mask . replace ( / [xy] / g , function ( c ) { var r = Math . random ( ) * 16 | 0 , v = c == 'x' ? r : ( r & 0x3 | 0x8 ) ; return v . toString ( 16 ) ; } ) ; }
Returns an RFC4122 version 4 compliant but not cryptographically secure UUID
 @return UUID
Returns an RFC4122 version 4 compliant but not cryptographically secure UUID @return UUID
// let mask = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'; // TRUE UUIDv4 // smaller than uuidv4 and probably statistically workable