UNPKG

wecui

Version:

一款基于Vue2.x版本的移动端web组件

10 lines (8 loc) 237 B
var isType = require('./isType'); // returns true if x is an instance of type module.exports = function is(x, type) { if (isType(type)) { return type.is(x); } return x instanceof type; // type should be a class constructor };