Concepts
Function factory
Pattern returning a callable configured by an invocation. Fresh local bindings can provide separate state; captured external objects may still be shared.
Formal Syntax & Structure
javascript syntaxjavascript
function make(config) { return value => /* configured result */ value; }Working Example
Example Snippetjavascript
const make=n=>x=>x*n;console.log(make(3)(4));