title: How to swap array element from one position to another using lodash?
body: <p>How do I swap array element from one position to another in JavaScript using lodash library?
  Something like this:</p>
  <pre><code>_.swap(array, fromIndex, toIndex) //but this is not working
  </code></pre>
  <p>This is the <a href="https://codepen.io/travist/full/jrBjBz/" rel="noreferrer">link</a> for online lodash tester, where I tested some of the methods but none worked</p>
  <p>Any help would be much appreciated. Thanks!</p>