vue-lynx / isReadonly

Function: isReadonly()

function isReadonly(value): boolean

Checks whether the passed value is a readonly object. The properties of a readonly object can change, but they can't be assigned directly via the passed object.

The proxies created by readonly and shallowReadonly are both considered readonly, as is a computed ref without a set function.

Parameters

ParameterTypeDescription
valueunknownThe value to check.

Returns

boolean

See

https://vuejs.org/api/reactivity-utilities.html#isreadonly

Defined in

node_modules/.pnpm/@vue+reactivity@3.5.30/node_modules/@vue/reactivity/dist/reactivity.d.ts:176