🐛 find element by value in has()
This commit is contained in:
parent
3e89f10d72
commit
994bc60923
@ -16,7 +16,7 @@ class Juicescript_helper_enum {
|
|||||||
HELPER: Check if ELEMENT is member of this enum
|
HELPER: Check if ELEMENT is member of this enum
|
||||||
*/
|
*/
|
||||||
has(element){
|
has(element){
|
||||||
return Object.keys(this).includes(element);
|
return Object.values(this).includes(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user