blob: 4ec5ec281ebcf020877d9e97f6de9633a494e337 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.cleanSkills = void 0;
function cleanSkills(data) {
const skills = [];
for (const item in data) {
if (item.startsWith('experience_skill_')) {
const skillName = item.substr('experience_skill_'.length);
const skillValue = data[item];
skills.push({
name: skillName,
xp: skillValue
});
}
}
return skills;
}
exports.cleanSkills = cleanSkills;
|