Skip to content

Instantly share code, notes, and snippets.

@beall49
Last active May 11, 2019 00:26
Show Gist options
  • Save beall49/a5a51eeeca769ae889c1d7937ae2ba6a to your computer and use it in GitHub Desktop.
Save beall49/a5a51eeeca769ae889c1d7937ae2ba6a to your computer and use it in GitHub Desktop.
/**
* All numbers divisible by 2
*/
const divisibles = (len) => [...Array(len + 1).keys()].filter(k => k % 2 === 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment