packages/victory-core/src/victory-util/transitions.js
function getChildOnLoad(animate, data, cb) {
  animate = assign({}, animate, { onEnd: cb });
  if (animate && animate.onLoad && !animate.onLoad.duration) {
    return { animate, data };
  }
  const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : identity;
  // If nodes need to exit, transform them with the provided onLoad.after function.
  data = data.map((datum, idx) => {
    return assign({}, datum, after(datum, idx, data));
  });

  return { animate, data };
}
function getChildOnLoad(animate, data, cb) {
  animate = assign({}, animate, { onEnd: cb });
  if (animate && animate.onLoad && !animate.onLoad.duration) {
    return { animate, data };
  }
  const after = animate.onLoad && animate.onLoad.after ? animate.onLoad.after : identity;
  // If nodes need to exit, transform them with the provided onLoad.after function.
  data = data.map((datum, idx) => {
    return assign({}, datum, after(datum, idx, data));
  });

  return { animate, data };
}
function getChildOnLoad ( animate , data , cb ) { animate = assign ( { } , animate , { onEnd : cb } ) ; if ( animate && animate . onLoad && ! animate . onLoad . duration ) { return { animate , data } ; } const after = animate . onLoad && animate . onLoad . after ? animate . onLoad . after : identity ; // If nodes need to exit, transform them with the provided onLoad.after function. data = data . map ( ( datum , idx ) => { return assign ( { } , datum , after ( datum , idx , data ) ) ; } ) ; return { animate , data } ; }
eslint-disable-next-line max-params
eslint - disable - next - line max - params