ctor.prototoype
为原型创建一个对象function newOperator(ctor, ...args) {
if (typeof ctor !== 'function') {
throw new TypeError('Type Error')
}
const obj = Object.create(ctor.prototype)
const res = ctor.apply(obj, args)
const isObject = typeof res === 'object' && res !== null
const isFunction = typeof res === 'function'
return isObject || isFunction ? res : obj
}