Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
getTransformation(extendedProps) {
let {children, ...rest} = extendedProps;
let ownTransformation = only(Util.withCamelCaseKeys(rest), Transformation.methods) || {};
let childrenOptions = this.getChildTransformations(children);
if (!Util.isEmpty(childrenOptions)) {
ownTransformation.transformation = childrenOptions;
}
return ownTransformation;
}