Files
30-seconds-of-code/test/negate/negate.js
2018-02-04 17:38:39 +02:00

2 lines
76 B
JavaScript

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