function getMaNumberFunction(value: number, ...rest: Array<number>) {
  return value + rest.reduce((acc: number, curr: number) => acc + curr);
}

getMaNumberFunction(3, 4, 2, 1);

function getMaNumberFunction(value: number, ...rest: Array<number>) {
  return value + rest.reduce((acc: number, curr: number) => acc + curr);
}

const bazz = {
  baz: 'baz',
};

// eslint-disable-next-line @typescript-eslint/no-unused-vars
const anObject = {
  ...bazz,
  foo: 'fo',
  bar: 'bat',
};

getMaNumberFunction(3, 4, 2, 1);

Test for object rest operator
Test for object rest operator
