mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2024-12-23 13:47:22 +00:00
Improve keyword acquisition.
This commit is contained in:
parent
0b7ef16a41
commit
75e2b1c131
@ -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;
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user