Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}].concat([...new Array(8)].map((_, i) => {
const b = randomBoolean();
return {
title: capitalizeFirst(loremIpsum({
count: randomInt({ min: 4, max: b ? 10 : 5 }),
units: 'words',
})),
subtitle: capitalizeFirst(loremIpsum({
count: b ? 5 : 1,
units: b ? 'words' : 'paragraphs',
})),
time: `${i + 2} hr`,
titleClassName: `${b ? 'two-' : ''}line-clamp`,
subtitleClassName: `${b ? '' : 'two-'}line-clamp`,
img: randomImage({ width: 100, height: 80, time: i }),
};
}));
}].concat([...new Array(8)].map((_, i) => {
const b = randomBoolean();
return {
title: capitalizeFirst(loremIpsum({
count: randomInt({ min: 4, max: b ? 10 : 5 }),
units: 'words',
})),
subtitle: capitalizeFirst(loremIpsum({
count: b ? 5 : 1,
units: b ? 'words' : 'paragraphs',
})),
time: `${i + 2} hr`,
titleClassName: `${b ? 'two-' : ''}line-clamp`,
subtitleClassName: `${b ? '' : 'two-'}line-clamp`,
img: randomImage({ width: 100, height: 80, time: i }),
};
}));
const items = [...Array(length).keys()].map((_, i) => ({
key: `item-${i}`,
primaryText: capitalizeFirst(loremIpsum({ count: 5, units: 'words' })),
secondaryText: loremIpsum(),
leftAvatar: avatars[i],
}));
const items = [...Array(length).keys()].map((_, i) => ({
key: `item-${i}`,
primaryText: capitalizeFirst(loremIpsum({ count: 5, units: 'words' })),
secondaryText: loremIpsum(),
leftAvatar: avatars[i],
}));