buildDocs/applicators/WrapApplicator.js
import { Applicator } from './Applicator';
import { resolveFunction } from '../utils';
export class WrapApplicator extends Applicator {
apply({ args, config: { execute }, target, value }) {
return function (...invokeArgs) {
return execute(resolveFunction(args[0], this, target), value).apply(this, invokeArgs);
};
}
}