Skip to main content
Version: Next 🚧

[F] filterModelProperties

function filterModelProperties(
program,
model,
filter): Model

Applies a filter to the properties of a given type. If no properties are filtered out, then return the input unchanged. Otherwise, return a new anonymous model with only the filtered properties.

Parameters

ParameterTypeDescription
programProgram | ProjectedProgram-
modelModelThe input model to filter.
filter(property) => booleanThe filter to apply. Properties are kept when this returns true.

Returns

Model