Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function solve(str) {
- const arrStr = str.split(' ');
- const isFind = arrStr.filter((word) => word.startsWith('#') && word.match(/[a-z]/g));
- isFind.forEach((word) => {
- if (word !== '') {
- console.log(word.replace('#', ''));
- }
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement