开发喵星球

前端面试题:什么是高阶函数?

高阶函数只是将函数作为参数或返回值的函数。
function higherOrderFunction(param,callback){ return callback(param): }

Proudly powered by WordPress