This repository has been archived on 2024-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
Permission-Checker-1/index.ts

19 lines
392 B
TypeScript
Raw Normal View History

2023-06-04 15:15:34 +02:00
/**
* Check if a permission is granted
* @param {Array<String>} perm - Is the permission that the user have
* @param {Array<String>} reqPerm - Is the required permissions
* @returns {Boolean}
*/
function checkList(perm: string[], reqPerm: string[]) {
let answer = false, trueL = 0;
for (const p of perm) {
}
return answer;
}
export default {
checkList,
}