MCPcopy Index your code
hub / github.com/darkreader/darkreader / isPlainObject

Function isPlainObject

src/utils/validation.ts:10–12  ·  view source on GitHub ↗
(x: any)

Source from the content-addressed store, hash-verified

8}
9
10function isPlainObject(x: any): x is Record<string, unknown> {
11 return typeof x === 'object' && x != null && !Array.isArray(x);
12}
13
14function isArray(x: any) {
15 return Array.isArray(x);

Callers 3

validateSettingsFunction · 0.85
isValidPresetThemeFunction · 0.85
validateThemeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected