function emojiCodes( out, aliases, tones ) {
	var code;
	var len;
	var j;
	var k;

	if ( tones ) {
		// Schema: `:<alias>::<modifier>[, <modifier>[, ...]]:`
		len = tones.length;
		for ( j = 0; j < aliases.length; j++ ) {
			code = ':' + aliases[ j ] + '::';
			for ( k = 0; k < len; k++ ) {
				code += tones[ k ];
				if ( k < len-1 ) {
					code += ', ';
				}
			}
			code += ':';
			out.push( code );
		}
		return out;
	}
	// Schema: `:<alias>:`
	for ( j = 0; j < aliases.length; j++ ) {
		out.push( ':' + aliases[ j ] + ':' );
	}
	return out;
}
Generates emoji codes.

@private
@param {Array} out - output array
@param {Array} aliases - emoji aliases
@param {Array} [tones] - skin tones
@returns {Array} output array