Skip to content

wevu / index / isShallowRef

函数: isShallowRef()

isShallowRef(r): r is Ref<any>

定义于: packages/wevu/src/reactivity/shallowRef.ts:46

判断传入值是否为浅层 ref。

参数

r

any

待判断的值

返回

r is Ref<any>

若为浅层 ref 则返回 true

Released under the MIT License.