prepend
Simple modules for functional programming, done for fun.
Usage
import prepend from 'funny-prepend'
prepend(3, [1, 2]) // [3, 1, 2]
prepend([3], [1, 2]) // [[3], 1, 2]
License
The MIT License (MIT). Copyright (c) 2016 Luís Rodrigues.
Simple modules for functional programming, done for fun.
import prepend from 'funny-prepend'
prepend(3, [1, 2]) // [3, 1, 2]
prepend([3], [1, 2]) // [[3], 1, 2]
The MIT License (MIT). Copyright (c) 2016 Luís Rodrigues.
npm i funny-prepend
1
1.0.3
MIT