I am currently attempting to filter an array of objects based on a specific value. Interestingly, out of the console.log outputs provided below, only the first one is yielding the expected result:
console.log('log1: ', sf);
console.log('log2: ', sf.filter(f => true));
console.log('log3: ', sf.filter(f => f.Specification.FormSelector === 'app-g-form'));
console.log('log4: ', sf.findIndex(f => f.Specification.FormSelector.includes('app-g-form')));
The outcomes for the above are as follows:
https://i.sstatic.net/AAwzX.png
Upon analyzing log2, log3, and log4, my anticipation was that the console output would align with that of log1. The display from log1 affirms that the content within sf does indeed hold valid data.