source: frontend/node_modules/underscore/cjs/wrap.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 313 bytes
Line 
1var partial = require('./partial.js');
2
3// Returns the first function passed as an argument to the second,
4// allowing you to adjust arguments, run code before and after, and
5// conditionally execute the original function.
6function wrap(func, wrapper) {
7 return partial(wrapper, func);
8}
9
10module.exports = wrap;
Note: See TracBrowser for help on using the repository browser.