javascript箭头函数连写是什么意思?一直不太理解,请大佬说详细一点,代码如下:
let CURRENT = 'NULL';const renderAuthorize = Authorized => currentAuthority => { //这一行的箭头函数连写是什么意思?
if (currentAuthority) { if (typeof currentAuthority === 'function') {
CURRENT = currentAuthority();
} if ( Object.prototype.toString.call(currentAuthority) === '[object String]' || Array.isArray(currentAuthority)
) {
CURRENT = currentAuthority;
}
} else {
CURRENT = 'NULL';
} return Authorized;
};export { CURRENT };export default Authorized => renderAuthorize(Authorized);问题就是第2行代码的箭头函数连写,它是什么意思?
九州编程
相关分类