Skip to content

Instantly share code, notes, and snippets.

@hendrixroa
Created March 1, 2023 02:06
Show Gist options
  • Save hendrixroa/d7e219e36549c41b990186e15b5396e9 to your computer and use it in GitHub Desktop.
Save hendrixroa/d7e219e36549c41b990186e15b5396e9 to your computer and use it in GitHub Desktop.
private calculateVulnerabilities(dataVulnerabilities: Vulnerabilities): number {
const countVulnerabilities: number = Object.values(
dataVulnerabilities,
).reduce((total: number, current: number) => {
return total + current;
});
return countVulnerabilities;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment