title: console.log and execution of function with Node.js and CoffeeScript
body: <p>I compile CoffeeScript with node. In a script I have a function which clears arrays.
  I want to console.log the empty array.
  I can't see the difference between the 3 block logs:</p>
  
  <pre><code>clearArray = (arr) -&gt;
    arr.splice 0 , arr.length
  
  #Block 1
  arr = [1,2]
  clearArray arr
  console.log arr
  
  #Block 2
  array = [1,2]
  console.log clearArray array
  
  #Block 3
  console.log clearArray [1,2] 
  
  #Block 1 logs: []
  #Block 2 &amp; 3 log: [ 1, 2 ]
  </code></pre>
  
  <p>In my understanding all Blocks should log "[ ]" and return an empty array, since clearArray returns the result of arr.splice(). It seems like #Block2 &amp;3 do not execute the splice function?!
  Any help is much appreciated.</p>