jquery - Javascript Function Find -


i have been giving javascript @ , i'm finding hard solve this.

i need write function findbyname correct name name tom jones passed in.

so far have this..

  locatorservice.prototype.findbydirector = function() {    };        describe('describe text', function () {         it('sub text', function() {           var locatorservice = new search.locatorservice(data);           var expectedresult = [data[0]];           expect(locatorservice.findbyname('tom jones')).to.eql(expectedresult);         });       });          var data = [         {           title: 'movie 1',           startfate: new date('2015-01-01'),           cast: [],           crew: [             { credit: 'director', name: 'tom jones' },             { credit: 'producer', name: 'bill baily' }           ]         }, 

any ideas, new object orientated java script.

is thing want? underscore.js good!


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -