Yippee

Results 2 comments of Yippee

```js function getLongest(str) { let result = {}, mostLength = 1, tempLength = 1 for (let i = 1; i < str.length; i++) { if (str[i] === str[i - 1])...

```js function getLongest(str) { let result = {}, mostLength = 1 str.replace(/(\w)\1+/g, m => { if (m.length > mostLength) { mostLength = m.length result = { [m[0]]: mostLength } }...