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