Files
30-seconds-of-code/test/negate/negate.js
2018-08-02 13:49:33 +03:00

3 lines
77 B
JavaScript

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