constant
Simple modules for functional programming, done for fun.
Usage
import constant from 'funny-constant'
const alwaysOne = constant(1)
alwaysOne() // 1
License
The MIT License (MIT). Copyright (c) 2016 Luís Rodrigues.
Simple modules for functional programming, done for fun.
import constant from 'funny-constant'
const alwaysOne = constant(1)
alwaysOne() // 1
The MIT License (MIT). Copyright (c) 2016 Luís Rodrigues.
npm i funny-constant
1
1.0.3
MIT