utils = { consonantesReg: function (cadena) { cadena = cadena.replace(/[^bcdfghjklmnñpqrstvwxyz]/gi, '') return cadena.length }, masLarga: function (cadena) { const palabras = cadena.split(' ') palabras.sort((a, b) => b.length - a.length) return palabras[0] }, masConsonantesSort: function (cadena) { const palabras = cadena.split(' ') palabras.sort((a, b) => consonantesReg(b) - consonantesReg(a)) return palabras[0] } }