Difference between using a spread syntax (...) and push.apply, when dealing with arrays
<p>I have two arrays,</p>

<pre><code>const pets = ["dog", "cat", "hamster"]

const wishlist = ["bird", "snake"]
</code></pre>

<p>I want to append <code>wishlist</code> to <code>pets</code>, which can be done using two methods,</p>

<p><strong>Method 1:</strong> </p>

<pre><code>pets.push.apply(pets,wishlist)
</code></pre>

<p>Which results in:    <code>[ 'dog', 'cat', 'hamster', 'bird', 'snake' ]</code></p>

<p><strong>Method 2:</strong></p>

<pre><code>pets.push(...wishlist)
</code></pre>

<p>Which also results in: <code>[ 'dog', 'cat', 'hamster', 'bird', 'snake' ]</code></p>

<p>Is there is a difference between these two methods in terms of performance when I deal with larger data?</p>