1
0
mirror of https://github.com/JuanCanham/HackMyResume.git synced 2024-11-05 09:56:22 +00:00

Improve keyword acquisition.

This commit is contained in:
hacksalot 2016-01-03 09:48:02 -05:00
parent 0b7ef16a41
commit 75e2b1c131

View File

@ -224,11 +224,13 @@ Definition of the FRESHResume class.
var flatSkills = [];
if( this.skills ) {
if( this.skills.sets ) {
flatSkills = flatSkills.concat( this.skills.sets.map(function(sk) { return sk.name; }) );
flatSkills = this.skills.sets.map(function(sk) { return sk.skills; })
.reduce(function(a,b) { return a.concat(b); });
}
else if( this.skills.list ) {
flatSkills = flatSkills.concat( this.skills.list.map(function(sk) { return sk.name; }) );
}
flatSkills = _.uniq( flatSkills );
}
return flatSkills;
},