title: How does lodash chaining work?
body: <p>Lodash v4.17.2</p>
  
  <p>Could someone please clarify how chaining works? I just haven't found any documentation or blogs that explain the return results from lodash methods.
  In the following code sample, why does the second assignment to filterAge not work? Or a similar more jquery like chaining? If anyone has a resource that explains this, I would love it.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let characters = [
    { 'name': 'barney1', 'age': 36, 'pets': ['hoppy'] },
    { 'name': 'barney2', 'age': 36, 'pets': ['hoppy'] },
    { 'name': 'barney3', 'age': 36, 'pets': ['hoppy'] },
    { 'name': 'barney4', 'age': 36, 'pets': ['hoppy'] },
    { 'name': 'fred',   'age': 40, 'pets': ['baby puss', 'dino'] }
  ];
  
  let filterAge = _.take(_.slice(_.filter(characters, { 'age': 36 }), 2), 5);
  filterAge = _.filter(characters, { 'age': 36 })
            .slice(2)
            .take(5);
  
  console.log(JSON.stringify(filterAge));</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdn.jsdelivr.net/lodash/4.17.2/lodash.min.js"&gt;&lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p><a href="https://jsfiddle.net/W4QfJ/3554/" rel="nofollow noreferrer">fiddle</a></p>