Is there a javascript equivalent of this python code? I know you can use ``, but how can you combine it with ... spread operator?
'{}{}{} {}{}{}-{}{}{}{}'.format(*array)
array is list of length 10 of numbers, the result expected is something like
'123 456-7890'