0
0

🐛 find element by value in has()

This commit is contained in:
DrMaxNix 2022-09-06 16:48:39 +02:00
parent 3e89f10d72
commit 994bc60923

View File

@ -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);
} }
/* /*