UNPKG
plura
Version:
latest (0.7.0)
0.7.0
0.6.1
0.6.0
0.5.0
0.4.0
0.3.0
0.2.0
0.1.1
0.1.0
0.0.1
Super simple functional programming library
github.com/richie-south/fp-lib
richie-south/fp-lib
plura
/
src
/
always.js
14 lines
(12 loc)
•
233 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/** * Simple always *
@param
{Any} a - any value *
@return
{Function} _ - function to get a *
@return
{Any} - a *
@example
* * const getTen = always(10) * getTen() */
const
always
=
a => () => a
module
.
exports
= always