Last active
May 23, 2019 08:52
-
-
Save MD4/2285c365102d8c7ef85c8c105eda769e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const countSelectedIssuePoints = () => $('.js-issue.ghx-selected .aui-badge.ghx-statistic-badge') | |
.map((_, b) => +$(b).text()) | |
.get() | |
.reduce( | |
(a,b) => a + (b || 0), | |
0, | |
); | |
countSelectedIssuePoints(); // 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment