ee.Feature.select

Selects properties from a feature by name or RE2-compatible regex and optionally renames them.

UsageReturns
Feature.select(propertySelectors, newProperties, retainGeometry)Element
ArgumentTypeDetails
this: inputElementThe feature to select properties from.
propertySelectorsListA list of names or regexes specifying the properties to select.
newPropertiesList, default: nullOptional new names for the output properties. Must match the number of properties selected.
retainGeometryBoolean, default: trueWhen false, the result will have a NULL geometry.