add comments

This commit is contained in:
Rodrigo Quelca
2021-08-20 04:16:37 +00:00
parent 9e1ee91a97
commit 4985d3a788
2 changed files with 35 additions and 14 deletions

View File

@@ -283,6 +283,12 @@ export default {
}
return newData;
},
/**
* Sort the custom case list menu items
* @param {array} list
* @param {array} ref
* @returns {array}
*/
sortCustomCasesList(list, ref) {
let item,
newList = [],
@@ -301,6 +307,11 @@ export default {
return [...newList, ...temp];
},
/**
* Util to compare an oobject by id
* @param {array} otherArray
* @returns {object}
*/
comparerById(otherArray){
return function(current){
return otherArray.filter(function(other){