Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const duplicateCount = (text) => (text.match(/(w)(?=(?!.*1.*1).*1)/gi) || []).length;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement