# All files / src/core/dom global.ts

100% Statements 5/5
40% Branches 2/5
100% Functions 1/1
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

    1
    2
    3
    4
    5
    1x
    1x
    1x
    1xconst check =  (it: WechatMiniprogram.Wx) => {
      return it && typeof it.env && it
    }

    export const miniprogramThis = check(typeof wx === 'object' && wx)