copyUnconsumedProps method

Map copyUnconsumedProps()

Returns a copy of this component's props with keys found in consumedProps omitted.

Should be used alongside forwardingClassNameBuilder.

Related copyUnconsumedDomProps

Implementation

Map copyUnconsumedProps() {
  var consumedPropKeys = consumedProps?.map((consumedProps) => consumedProps.keys) ?? const [];

  return copyProps(keySetsToOmit: consumedPropKeys);
}