Files
30-seconds-of-code/test/negate/negate.js
2018-01-17 13:40:40 -05:00

2 lines
76 B
JavaScript

const negate = func => (...args) => !func(...args);
module.exports = negate