title: Jasmine Karma Array.find is not a function
body: <p>I'm using Jasmine for testing and Karma as my test runner.</p>
  
  <p>I have a simple find method using <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Array/find" rel="nofollow">Array.prototype.find()</a> which is failing with error:</p>
  
  <blockquote>
    <p>TypeError: myns.dataList.find is not a function</p>
  </blockquote>
  
  <p>This suggests it can't understand the function. I also have a polyfill for the method in the same file, and also have <a href="https://www.npmjs.com/package/karma-es6-shim" rel="nofollow">an es6 shim</a> installed on Node.</p>
  
  <p>Using Chrome 51.0.2704</p>
  
  <p>This is what I'm trying:</p>
  
  <pre><code>describe('the description', function() {
      it('should work', function() {
  
          jasmine.getJSONFixtures().fixturesPath = 'base/path/to/json/';
          myns.dataList = loadJSONFixtures('dataList.json');
  
          console.log(myns.dataList); /* all ok here, json is loaded */
  
          var theName = myns.dataList.find(function(entry) {
              return entry.name === selfName;
          });
  
          expect(2 + 2).not.toEqual(4); /* doesn't get here because of TypeError */
      });
  });
  </code></pre>
  
  <p><strong>Note:</strong> this works as it should when Jasmine is run directly from the browser</p>