MCPcopy Create free account
hub / github.com/pacexy/flow / keys

Function keys

apps/reader/src/utils.ts:1–3  ·  view source on GitHub ↗
(o: T)

Source from the content-addressed store, hash-verified

1export function keys<T extends object>(o: T) {
2 return Object.keys(o) as (keyof T)[]
3}
4
5export function clamp(value: number, min: number, max: number) {
6 return Math.min(Math.max(value, min), max)

Callers 4

mapToCssFunction · 0.90
AnnotationPaneFunction · 0.90
TypographyViewFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected