How can i access the BookProperties Array(24) and update the Book-EngineType with the value SG to something like EngineType1
what i expect to get within setState() is Book-EngineType to be of value EngineType1 and not SG.
How can i access the BookProperties Array(24) and update the Book-EngineType with the value SG to something like EngineType1
what i expect to get within setState() is Book-EngineType to be of value EngineType1 and not SG.
let bookProperties = [
{name:'bookallowtostorehistory', val:'manual'},
{name:'Book-EngineType', val:'SG'}
];
bookProperties.forEach(function(el) {
if (el.name == 'Book-EngineType') {
el.val = 'EngineType1';
}
})