From 62e6fcecdca9f20ca8f6ca3f6cbe5f92c7991987 Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Thu, 12 Sep 2024 19:10:25 +0200 Subject: [PATCH] Leverage .some --- src/diff/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/diff/index.js b/src/diff/index.js index f36530110f..50a18ec515 100644 --- a/src/diff/index.js +++ b/src/diff/index.js @@ -170,7 +170,7 @@ export function diff( newVNode._dom = oldVNode._dom; newVNode._children = oldVNode._children; - newVNode._children.forEach(vnode => { + newVNode._children.some(vnode => { if (vnode) vnode._parent = newVNode; });