'use strict';

/* Filters */

angular.module('myApp.filters', []).
  filter('interpolate', ['version', function(version) {
    return function(text) {
      return String(text).replace(/\%VERSION\%/mg, version);
    }
  }]).
  filter('skillfilter', function(){
  	return function(projects, search){
  		if (!search) {
	      return projects;
	    }
  		return projects.filter(function(element, index, array) {
	      // return element.carType.name === search.carType;
	      for(var i = 0; i < element.skills.length; i++){
	      	if (element.skills[i] === search){
	      		return true;
	      	}
	      	else {
	      		console.log(element.skills[i]);
	      	}
	      }
	    });
  	}
  });

@@ -407,66 +407,8 @@
 ) %7B%0A
-%09      // return element.carType.name === search.carType;%0A
 %09   
@@ -537,74 +537,8 @@
  %09%7D%0A
-%09      %09else %7B%0A%09      %09%09console.log(element.skills%5Bi%5D);%0A%09      %09%7D%0A
 %09   

remove console log