Hyphen-separated property names
See original GitHub issueHi, this project looks awesome! I’m trying to improve the typings for JSS and these typings look very promising in that effort. However, there’s a need in that library for both camel cased and hyphen-separated CSS property names. Would it be possible to generate a kebab-cased version of the Properties
interface?
Issue Analytics
- State:
- Created 6 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
How do I reference a JavaScript object property with a ...
The answer to the original question is: place the property name in quotes and use array style indexing: obj['property-with-hyphens'];.
Read more >Access an Object Property with a Hyphen in JavaScript
If the property contains a hyphen, space, or special symbols, you have to use bracket notation. Copied!
Read more >Micronaut Mastery: Configuration Property Name Is ...
If we refer to a configuration property name using @Value or @Property we must use lowercased and hyphen separated names (also known as...
Read more >Can JavaScript Object Property Name Have Hyphens?
JavaScript object property names can be any string, including having hyphens in the name. However, object property names that are not valid ...
Read more >Better handlng of hyphenated properties · Issue #4032
It is common in JavaScript to have hyphenated property names. For example: var obj = { "foo-bar" : "Foo Bar" }; The property...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sure, I agree. There should be a hyphened version. I’ll look into it as soon as I can. Should be quite easy.
Fixed in v1.5.0