jverce

numChars

Aug 24th, 2020
1,639
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. const numChars = (str, char) => [...str].filter(c => c == char).length;
Advertisement
Add Comment
Please, Sign In to add comment