In simple terms, what's the difference between a thunk and a Higher Order Function?

Viewed 5427

I understand that both are functions that return functions.

My experience so far with thunks have been using them to return functions as opposed to just action objects so that I can work with async requests in Redux.

A closure is an implementation of a High Order Function (HOF) in order to create a new scope for private variables...right? Other examples of HOFs include map, reduce and filter.

Is there any thing else that explicitly defines a difference between the two?

Thanks.

2 Answers
Related