|
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:
301 bytes
|
| Line | |
|---|
| 1 | import partial from './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.
|
|---|
| 6 | export default function wrap(func, wrapper) {
|
|---|
| 7 | return partial(wrapper, func);
|
|---|
| 8 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.