This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function stripProperty(obj, prop) { | |
| const newObj = Object.keys(obj).filter(el => el !== prop) | |
| const values = newObj.map(el => [el, obj[el]]) | |
| return Object.fromEntries(values) | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const main = () => { | |
| var characters = 'abcdefghijklmnopqrstuvwxyz'; | |
| var charactersLength = characters.length; | |
| var words = []; | |
| var wordsPalindromes = []; | |
| for(var j = 0; j < 10000; j++){ | |
| var wordLength = Math.floor(Math.random() * (5 - 3 + 1) ) + 3; | |
| var word = ''; | |
| for ( var i = 0; i < wordLength; i++ ) { |