resolve default parameter value
rest + spread for function definition and call