Currying chuyển hàm nhiều argument thành chuỗi hàm mỗi hàm nhận một argument: f(a,b,c) thành f(a)(b)(c).
Ví dụ: const multiply = (a) => (b) => a * b; const double = multiply(2); double(5) // 10. Dùng cho partial application, compose functions, tạo hàm chuyên biệt.
Currying transforms a multi-argument function into a chain of functions each taking one argument: f(a,b,c) becomes f(a)(b)(c).
Example: const multiply = (a) => (b) => a * b; const double = multiply(2); double(5) // 10. Used for partial application, composing functions, and creating specialized functions.