title: When should I put my code outside the export module, lifecycle hooks in a single file Vue component?
body: <p>I'm writing a code that needs to calculate some logics, for example, processing some arrays.</p>
  
  <p>So, normally, a single file Vue component would look like:</p>
  
  <pre><code>&lt;template&gt;
    ...
  &lt;/template&gt;
  
  &lt;script&gt;
  import ...
  
  // When should I put my code here?
  
  export default {
    created: function() {
      // And what type of code I should put here?
    }    
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>When and what type of code should I put between <code>import</code> and <code>export</code>?</p>
  
  <p>Thanks!</p>