mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* move core transformation cases to plugins * move tests to traverse/regression
11 lines
185 B
JavaScript
11 lines
185 B
JavaScript
function wrapper(fn) {
|
|
return (...args) => {
|
|
while (someCondition) {
|
|
const val = fn(...args);
|
|
return val.test(() => {
|
|
console.log(val);
|
|
});
|
|
}
|
|
};
|
|
}
|