window.ENTITIES={'/api/snippets/javascript/js%20remove%20vowels%20from%20array%20of%20strings':[{"result":true,"message":null,"batch":{"type":"javascript","name":"js remove vowels from array of strings","items":[{"id":"D7Y0nj","type":"javascript","name":"js remove vowels from array of strings","content":"const words = ['red', 'apple', 'dog'];\n\nresult = words.map(item => item.replace(/[aeiou]/g, ''));\n\nconsole.log(result); // ['rd', 'ppl', 'dg']","source":"","author":{"id":"E0kjgo","name":"Dragontry","avatar":"1629030398251__E0kjgo__w40px_h40px.png","points":731,"role":"BASIC"},"creationTime":1636487596000,"updateTime":1647950966000,"removalTime":null},{"id":"1ANnaD","type":"javascript","name":"js remove vowels from array of strings","content":"function removeVowels(array) {\n return array.map(item => item.replace(/[aeiou]/g, ''));\n}\n\n\n// Usage example:\n\nconst words = ['red', 'apple', 'dog'];\nconst result = removeVowels(words);\n\nconsole.log(result); // ['rd', 'ppl', 'dg']","source":"","author":{"id":"4a6AJD","name":"Mariam-Barron","avatar":"1629130975585__4a6AJD__w40px_h40px.jpg","points":811,"role":"BASIC"},"creationTime":1636487602000,"updateTime":1647950987000,"removalTime":null}]}}]};