title: Object context lost inside of function
body: <pre><code>router.get("/", function(req, res, next) {
      axios.get('https://www.behance.net/v2/users/user/projects/4889175?api_key=' + 'API')
      .then(function(response) {
        var data = response.data.projects;
  
        for(var i=0;i &lt; data.length; i++) {
          Behance.findOne({ name: data[i].name }, function(err, user) {
            if (err) { return next(err); }
            if (!user) {
              console.log(this.name);
              // var newBehance = new Behance({
              //   name: this.name,
              // });
              // newBehance.save(next);
            }
          });
        }
      })
      .catch(function(error) {
        console.log(error);
      });
  });
  </code></pre>
  
  <p>I'm pulling projects from Behance w/ their API and trying to save each one to a DB if it doesn't already exist using <code>findOne</code>. Inside of the for loop <code>data[i].name</code> returns a value, but inside of the <code>findOne</code> function it returns undefined. </p>
  
  <p>I can't seem to figure out why this is happening..</p>