I'm trying to handle an array of object. Where, I wanna ignore the object which has the value of '0' and print the values which is greater than zero by looping through 'storyIds', any ideas.
var dataArr = [
{number: 1, workId: [0], storyIds: [0]},
{number: 2, workId: [0], storyIds: [0]},
{number: 3, workId: [1], storyIds: [10]},
{number: 4, workId: [2], storyIds: [10]},
{number: 5, workId: [3], storyIds: [20]}
];
Expected Output
3, 4, 5 //Output