mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2025-05-04 05:17:08 +01:00
Add baseline keyword analysis.
This commit is contained in:
@ -221,8 +221,14 @@ Definition of the FRESHResume class.
|
||||
*/
|
||||
FreshResume.prototype.keywords = function() {
|
||||
var flatSkills = [];
|
||||
this.skills && this.skills.length &&
|
||||
(flatSkills = this.skills.map(function(sk) { return sk.name; }));
|
||||
if( this.skills ) {
|
||||
if( this.skills.sets ) {
|
||||
flatSkills = flatSkills.concat( this.skills.sets.map(function(sk) { return sk.name; }) );
|
||||
}
|
||||
else if( this.skills.list ) {
|
||||
flatSkills = flatSkills.concat( this.skills.list.map(function(sk) { return sk.name; }) );
|
||||
}
|
||||
}
|
||||
return flatSkills;
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user