0

I have

function f(a,b,c) {}

and

const arr = [1,2,3]

What do I need to call

f(arr)

__________________________________________?

Little Alien
  • 1
  • 8
  • 22

1 Answers1

0

One this you can do is:

f.apply({}, arr);
Arun Ghosh
  • 7,634
  • 1
  • 26
  • 38