18 lines
291 B
JavaScript
18 lines
291 B
JavaScript
|
/* Common useful functions shared between objects */
|
||
|
|
||
|
export class RdDUtility {
|
||
|
|
||
|
static findCompetence(compList, compName)
|
||
|
{
|
||
|
for (const item of compList) {
|
||
|
if (item.name == compName) {
|
||
|
console.log("Found item !", item);
|
||
|
return item;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|
||
|
|