Skip to content

Instantly share code, notes, and snippets.

@mfandl
Created August 31, 2018 08:27
Show Gist options
  • Save mfandl/4db1ebd34a30e7423c86310dac1a9856 to your computer and use it in GitHub Desktop.
Save mfandl/4db1ebd34a30e7423c86310dac1a9856 to your computer and use it in GitHub Desktop.
const finishedLevelsCount = levels
.filter(({ finished }) => finished)
.reduce(acc => acc + 1, 0);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment