const key = 'workplace';
const values = [ 'office', 'hotel' ];
const result = arr.filter(n => values.includes(n[key]));
// или
const result = values.flatMap(function(n) {
return this[n] ?? [];
}, arr.reduce((acc, n) => ((acc[n[key]] = acc[n[key]] ?? []).push(n), acc), {}));
// или
const result = arr.filter(((values, n) => values.has(n[key])).bind(null, new Set(values)));
// или
const result = [];
for (const n of arr) {
for (const m of values) {
if (m === n[key]) {
result.push(n);
break;
}
}
}
На зарубежные не суюсь, т.к пока с инглишом туго.
flex-basis, flex-wrap, justify-content.
Ваша правая часть остается всегда видимой - position: sticky.
* {
background-color: gray;
}