bower_components/foundation-sites/js/foundation.util.core.js
function GetYoDigits(length, namespace){
  length = length || 6;
  return Math.round((Math.pow(36, length + 1) - Math.random() * Math.pow(36, length))).toString(36).slice(1) + (namespace ? `-${namespace}` : '');
}
function GetYoDigits(length, namespace){
  length = length || 6;
  return Math.round((Math.pow(36, length + 1) - Math.random() * Math.pow(36, length))).toString(36).slice(1) + (namespace ? `-${namespace}` : '');
}
function GetYoDigits ( length , namespace ) { length = length || 6 ; return Math . round ( ( Math . pow ( 36 , length + 1 ) - Math . random ( ) * Math . pow ( 36 , length ) ) ) . toString ( 36 ) . slice ( 1 ) + ( namespace ? ` ${ namespace } ` : '' ) ; }
returns a random base-36 uid with namespacing
@function
@param {Number} length - number of random base-36 digits desired. Increase for more random strings.
@param {String} namespace - name of plugin to be incorporated in uid, optional.
@default {String} '' - if no plugin name is provided, nothing is appended to the uid.
@returns {String} - unique id
returns a random base - 36 uid with namespacing