Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
resolvedChildren.forEach(child => {
if (!isRemirrorExtension(child)) {
return;
}
const { Constructor, children: _, priority = 2, ...options } = child.props;
extensions.push({ extension: new Constructor(options), priority });
});