const typeList = ['Object', 'Array', 'Function', 'Number', 'String', ''];
const validate = (() => {
let obj = {}
for (let name of typeList) {
obj[`is${name}`] = (originObj) => Object.prototype.toString.call(originObj) === `[object ${name}]`
}
return obj;
})();
export default validate