const
Version:
The constant function from functional programming: it takes a value and returns a function that will return that value:
9 lines (7 loc) • 211 B
JavaScript
The constant function from functional programming: it takes a value and returns a function that will return that value: