UNPKG

rubico

Version:

[a]synchronous functional programming

15 lines (13 loc) 273 B
/** * @name always * * @synopsis * ```coffeescript [specscript] * always(value any) -> getter ()=>value * ``` * * @description * Create a function that always returns a value. */ const always = value => function getter() { return value } module.exports = always