What does this generated pagination helper print for a zero limit?

from Generated change review
Node 24 beginner 3 min

What does this generated pagination helper print for a zero limit?

JavaScript
function takePublished(products, limit = 20) {
  return products
    .filter((product) => product.published)
    .slice(0, limit || 20);
}

const products = [
  { sku: "A", published: true },
  { sku: "B", published: false },
  { sku: "C", published: true },
];

console.log(takePublished(products, 0).map((p) => p.sku));
Open in playground
Report an error