Design & Download
Your JS Library
in Seconds!!!

Snippet: wrapNot()

Written by Christopher West (cwest) on August 07, 2017.
Binarily NOT a function.
function wrapNot(f) {
  f = getSimpleCallback(f);
  return function() { return !f.apply(this, arguments); };
}