登录后复制 import { isFunction } from 'lodash-es' let isA = isFunction(() => {}) console.log(isA) //true 1.2.3.4. https://www.lodashjs.com/docs/lodash.isFunction#_isfunctionvalue https://lodash.com/docs/4.17.15#isFunction 原创作者: xutongbao 转载于: https://blog.51cto.com/xutongbao/11386759