Возьмите это slice_type: section . Неважно, где он находится в массиве, поэтому здесь его [1], но это может быть [0] или [2]. в конце мне нужно взять ключ элементов, которые находятся в объекте, который имеет slice_type: 'section';
[ { slice_type: 'structure',
slice_label: null,
items: [ [Object] ],
primary: {} },
{ slice_type: 'section', << Grab this slice_type section. No matter where it's in the array,
so here its [1], but it could be [0] or [2]. in the end I need to grab the items key that are in the object that has slice_type: 'section';
slice_label: null,
items:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ], <<- get this array of values
primary: { headline: [Array] } }