Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
untitled notebook
node v9.11.2
version:
1.0.0
endpoint
share
tweet
const _ = require('lodash/fp'); const homework = _.flow(_.countBy(v => /^./.exec(v)[0]), _.pickBy(v => v > 1), _.keys); homework([ 'Ks', 'Ad', '3h', '7c', 'Td', '9h', '7s', 'Ag']);
Loading…
no comments
sign in
to comment