neet/masto.js

View on GitHub
src/utils/is-record.ts

Summary

Maintainability
A
0 mins
Test Coverage
export const isRecord = (x: unknown): x is Record<string, unknown> =>
  typeof x === "object" && x !== null && x.constructor.name === "Object";