Skip to content

Char freq#19

Open
pearces wants to merge 1 commit into
f-u-n:masterfrom
pearces:char_freq
Open

Char freq#19
pearces wants to merge 1 commit into
f-u-n:masterfrom
pearces:char_freq

Conversation

@pearces

@pearces pearces commented Jun 6, 2016

Copy link
Copy Markdown
Contributor

No description provided.

'use strict';

const charFreq = (str) =>
Array.from(str).reduce((counts, current) => {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, makes str.split('').reduce look like a dirty hack 😎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants