isSafePropertyName | WebHare Platform SDKWebHare Platform SDKPreparing search index...@webhare/stdisSafePropertyNameFunction isSafePropertyNameisSafePropertyName(name: string): booleanCheck whether a property name is non-empty and not exactly "proto", "constructor", or "prototype". Comparison is case-sensitive. This only checks the name, not any associated value or nested properties. Parametersname: stringProperty name to check Returns booleanWhether the property name passes these checks Exampleconst keys = Object.keys(obj).filter(isSafePropertyName); Copy SettingsMember VisibilityProtectedInheritedThemeOSLightDarkWebHare Platform SDKLoading...
Check whether a property name is non-empty and not exactly "proto", "constructor", or "prototype". Comparison is case-sensitive. This only checks the name, not any associated value or nested properties.