Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- myFunction(text: string, value: string, ...extraValues: string[]): MyTypeOfClass {
- const valuesConfig: MyTypeOfClassValueConfigBLAblalbal[] = [
- {
- key1: value,
- key2: true,
- }
- ];
- extraValues.forEach(extraValue => {
- valuesConfig.push(
- {
- key1: value,
- key2: false
- }
- );
- });
- return {
- label: text,
- id: '',
- values: valuesConfig,
- disabled: true
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement