I have the following javascript line:
console.log({fieldMeta__value: fieldMeta.value, fieldMeta: fieldMeta});
As you can see, I am printing to console the object fieldMeta
and, also, its field value
. The problem is that its field value
(fieldMeta.value
) returns 1
, but the whole objects prints the content for value
as undefined
:
I am pretty sure I have some flaw in my logic, but I can't find it.
EDIT
I tried another approach for printing the values:
console.log(fieldMeta);
console.log(fieldMeta.value);