title: Check whether integers in array are consecutive or in sequence
body: <p>Is there any best method to check if elements in array are in consecutive order?</p>
  
  <p>Eg: </p>
  
  <pre><code>[1,2,3,4,5] // returns true 
  [1,2,4,3,5] // returns false
  </code></pre>
  
  <p>Currently what I implement is to take difference of elements and if the diff is 1 then I say it is in consecutive order.</p>
  
  <p>I'm looking for any improved approach. I think of adding extension to <code>Array</code> but not sure how to implement this.</p>