Explore Courses Blog Tutorials Interview Questions
0 votes
in Java by (13.1k points)
I have created two arrays and whenever I tried to unshift the array elements it append the whole array under different one. Can anyone help me with this?

1 Answer

0 votes
by (26.7k points)

You can use the below format, which will help to achieve what you want :

[].unshift.apply(arr1, arr2);

I hope this will help.

Want to become a Java Expert? Join Java Certification now!!

Want to know more about Java? Watch this video on Java Tutorial for Beginners | Java Programming :

Related questions

0 votes
1 answer
asked Feb 6, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer

Browse Categories