Add accessibility modifer

pull/73/head
MillenniumEarl 2021-02-25 15:15:57 +01:00
parent c3899010ea
commit 40428cb658
1 changed files with 4 additions and 4 deletions

View File

@ -15,14 +15,14 @@ export default class PrefixParser {
* @param {Any} value Value associated with the key * @param {Any} value Value associated with the key
* @returns {String|undefined} Key found or undefined * @returns {String|undefined} Key found or undefined
*/ */
getKeyByValue(object: TPrefixDict, value: string): string | undefined { private getKeyByValue(object: TPrefixDict, value: string): string | undefined {
return Object.keys(object).find(key => object[key] === value); return Object.keys(object).find(key => object[key] === value);
} }
/** /**
* Makes an array of strings uppercase. * Makes an array of strings uppercase.
*/ */
toUpperCaseArray(a: string[]): string[] { private toUpperCaseArray(a: string[]): string[] {
/** /**
* Makes a string uppercase. * Makes a string uppercase.
*/ */
@ -35,7 +35,7 @@ export default class PrefixParser {
/** /**
* Check if `dict` contains `value` as a value. * Check if `dict` contains `value` as a value.
*/ */
valueInDict(dict: TPrefixDict, value: string): boolean { private valueInDict(dict: TPrefixDict, value: string): boolean {
const array = Object.values(dict); const array = Object.values(dict);
const upperArr = this.toUpperCaseArray(array); const upperArr = this.toUpperCaseArray(array);
const element = value.toUpperCase(); const element = value.toUpperCase();
@ -47,7 +47,7 @@ export default class PrefixParser {
* desired element and return the dictionary that contains it. * desired element and return the dictionary that contains it.
* @param element Element to search in the prefixes as a key or as a value * @param element Element to search in the prefixes as a key or as a value
*/ */
searchElementInPrefixes(element: string | number): TPrefixDict | null { private searchElementInPrefixes(element: string | number): TPrefixDict | null {
// Local variables // Local variables
let dictName = null; let dictName = null;