Skip to content

Instantly share code, notes, and snippets.

View emmanueldiaz's full-sized avatar

Emmanuel Diaz emmanueldiaz

  • Guadalajara, Mexico
View GitHub Profile

Keybase proof

I hereby claim:

  • I am emmanueldiaz on github.
  • I am emmanueldiaz (https://keybase.io/emmanueldiaz) on keybase.
  • I have a public key ASAUBjTCpAP5QtkqDQg2NI6LHCCep8i9qBGfiNQxDekdLQo

To claim this, I am signing this object:

const signalToNumberMap = (inputByLength) => {
const signalMap = { };
const countIncludedChars = (input, number) => (
number.split('').reduce((count, numberChar) => {
if (input.includes(numberChar)) count++;
return count;
}, 0)
);