Skip to content

Instantly share code, notes, and snippets.

@ArtemRomanovsky
Created November 26, 2020 21:48
Show Gist options
  • Save ArtemRomanovsky/4b14e87bbb2610b7d5ad878ee4123abf to your computer and use it in GitHub Desktop.
Save ArtemRomanovsky/4b14e87bbb2610b7d5ad878ee4123abf to your computer and use it in GitHub Desktop.
return {{state.opportunities}}.filter(item => {
return ['Closed—lost', 'Closed—won'].includes(item.fields['Status']);
}).length;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment