title: Get array of all Lodash paths of object
body: <p>I'm trying to figure out if there is a simple way to get a list of all the "paths" (as defined by Lodash) of an object.</p>
  
  <p>That is:</p>
  
  <pre><code>getPaths({ a: 3, b: { c: 4, d: 0 }})
  
  =&gt; 
  [
    ['a'],
    ['b', 'c'],
    ['b', 'd']
  ]
  </code></pre>
  
  <p>Is there such a mechanism in Lodash? Or a simple way to create one?</p>