Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Last active March 4, 2018 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/53e3a14e539a4155eb5b351cbe932162 to your computer and use it in GitHub Desktop.
Save matthieu-D/53e3a14e539a4155eb5b351cbe932162 to your computer and use it in GitHub Desktop.
import {Filter} from 'vue-ts-decorate';
@Filter('TsSum')
export default class TsSum {
filter(value : any, ...params : any[]) {
return value + params.reduce((accumulator, param) => accumulator + param);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment