Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ...
- baseFunction(): void {
- const params = [a, b, c];
- const output = this.spreadFunction(...params);
- console.log(output);
- }
- spreadFunction(attribute1, attribute2, attribute3 ): string {
- ...
- return 'anything';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement