Download packages/llm/src/utils/record.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 257 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/llm/src/utils/record.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/llm/src/utils/record.ts
-
curl -L -o record.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/llm/src/utils/record.ts
257 Bytes
| /** Plain-record narrowing. Excludes arrays so JSON object checks don't accept tuples as key/value bags. */ | |
| export const isRecord = (value: unknown): value is Record<string, unknown> => | |
| typeof value === "object" && value !== null && !Array.isArray(value) | |