MCPcopy Create free account
hub / github.com/async-labs/builderbook / posts

Function posts

tutorials/5-start/server/posts.js:1–9  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1export default function posts() {
2 const arrayOfPosts = [];
3 const n = 5;
4
5 for (let i = 1; i < n + 1; i += 1) {
6 arrayOfPosts.push({ name: `Post ${i}`, slug: `post-${i}` });
7 }
8 return arrayOfPosts;
9}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected