Skip to content
Snippets Groups Projects
Commit efc5bf6a authored by JonStargaryen's avatar JonStargaryen
Browse files

use set

parent cbc98014
Branches
No related tags found
No related merge requests found
......@@ -336,9 +336,9 @@ namespace HphobHphil {
}
// ANVIL-specific (not general) definition of membrane-favoring amino acids
const HYDROPHOBIC_AMINO_ACIDS = ['ALA', 'CYS', 'GLY', 'HIS', 'ILE', 'LEU', 'MET', 'PHE', 'SER', 'THR', 'VAL'];
const HYDROPHOBIC_AMINO_ACIDS = new Set(['ALA', 'CYS', 'GLY', 'HIS', 'ILE', 'LEU', 'MET', 'PHE', 'SER', 'THR', 'VAL']);
function isHydrophobic(label_comp_id: string): boolean {
return HYDROPHOBIC_AMINO_ACIDS.indexOf(label_comp_id) !== -1;
return HYDROPHOBIC_AMINO_ACIDS.has(label_comp_id);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment