Partial application creates a new function by pre-filling some arguments of an existing function. It belongs to the applied functional-programming skills expected in JavaScript interviews, alongside currying and higher-order functions. section 3.2
Specializing a function
Listing 3.7 demonstrates a related specialization pattern: curriedMultiply(2) produces double, which later receives 5 and returns 10. Be prepared to explain how pre-filled arguments create reusable functions and how this relates to currying. section 3.2
Table 3.2 Core concepts of functional paradigms
|
Topic
|
Fundamentals
|
Applied skills
|
Advanced
|
|
Functional programming
|
Identify pure functions; use
map,
filter,
reduce; explain immutability.
|
Refactor code for immutability; apply currying and partial application; use higher-order functions (HOF).
|
Architect functional modules; optimize performance in functional pipelines; blend FP with OOP patterns.
|
|
Iterators & generators
|
Use
for...of; explain iterators and iterable protocols.
|
Create custom iterators; use
yield to build generator functions.
|
Build asynchronous flows with generators; integrate iterables in advanced design patterns.
|
|
Symbols & meta-programming
|
Explain
Symbol basics and well-known symbols (
Symbol.iterator, etc.).
|
Use
Proxy for validation, intercept API calls; utilize
Reflect API for meta-operations.
|
Architect meta-programming utilities for libraries/frameworks; design extensible APIs with
Symbol and meta-programming.
|
Use the functional-paradigms table to compare partial application with foundational and architectural functional-programming skills. section 3.2












