Skip to main content

Function: isPropertyNamed()

isPropertyNamed(property: Readonly<Property>, name: string): boolean

Defined in: _internal/stylelint-config-object.ts:30

Check whether a property key matches a specific string literal name.

Parametersโ€‹

propertyโ€‹

Readonly<Property>

Candidate object property.

nameโ€‹

string

Expected property name.

Returnsโ€‹

boolean

true when the property key matches the provided name.