MCPcopy
hub / github.com/vuejs/composition-api / isComputed

Function isComputed

test/apis/computed.spec.js:254–256  ·  view source on GitHub ↗
(o)

Source from the content-addressed store, hash-verified

252
253 it('passes isComputed', () => {
254 function isComputed(o) {
255 return !!(o && isRef(o) && o.effect)
256 }
257
258 expect(isComputed(computed(() => 2))).toBe(true)
259 expect(

Callers 1

computed.spec.jsFile · 0.85

Calls 1

isRefFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…