@antv/layout
Version:
graph layout algorithm
28 lines (23 loc) • 621 B
JavaScript
/**
* Creates a unary function that invokes `func` with its argument transformed.
*
* @private
* @param {Function} func The function to wrap.
* @param {Function} transform The argument transform.
* @returns {Function} Returns the new function.
*/
var _overArg;
var hasRequired_overArg;
function require_overArg () {
if (hasRequired_overArg) return _overArg;
hasRequired_overArg = 1;
function overArg(func, transform) {
return function(arg) {
return func(transform(arg));
};
}
_overArg = overArg;
return _overArg;
}
export { require_overArg as __require };
//# sourceMappingURL=_overArg.js.map