UNPKG

moy-fp

Version:
12 lines (9 loc) 251 B
import curry from '../Function/curry' import nAry from '../Function/nAry' /** * ((a, b, ..., m) -> n) -> ((a, b, ..., m) -> Boolean) */ const complement = curry( pred => nAry(pred.length, (...args) => !pred(...args)) ) export default complement