A function that accepts entities and synchronizes by invoking callbacks
const syncLayers = resolveListDeltas({
container: layerContainer,
onAddItem: (layer) => addLayer(layer),
onRemoveItem: (id) => removeLayer(id)
});
syncLayers(newLayerList);
Creates a function that synchronizes a container model's list with new entities. Simpler alternative to resolveContainerDeltas that directly invokes callbacks for each addition and removal.