Sequelize list of functions on the object
<p>Is there a way in using Sequelize (sequelizejs.com) to output all the functions magically created on objects when I set associations.</p>

<p>for example; I have a User model and I set </p>

<p><code>User.belongsToMany(User, { as: 'Friends', through: 'UserFriend' });</code></p>

<p>now i can call </p>

<pre><code>User.create({
    name: Faker.name.findName()
 }).then((user) =&gt; {
     user.createFriend({
         name: Faker.name.findName()
     })
});
</code></pre>

<p>The <code>createFriend</code> function is possible because of the belongsToMany relation.</p>

<p>Is there a way to output all functions created on User (or user)? </p>

<p>Sometimes to me it's not really clear what I can call on a object, it would help me if i could output it in some way.</p>