MCPcopy Create free account
hub / github.com/dailydotdev/apps / isPrimary

Function isPrimary

packages/shared/src/features/posts/postOptionGroups.ts:47–48  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

45 .sort(sortBy(ownerOrder));
46 const hideFirst = owner.length === 0;
47 const isPrimary = (id: string) =>
48 primaryOrder.includes(id) && (hideFirst || id !== 'hide');
49 const primary = options
50 .filter((option) => isPrimary(option.id ?? ''))
51 .sort(sortBy(primaryOrder));

Callers 1

groupPostOptionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected