SyntaxFix
Write A Post
Hire A Developer
Questions
For a functional programming Ramda has a nice method for this. The same method works going from positive to negative and vice versa.
https://ramdajs.com/docs/#negate