Click here to Skip to main content
15,891,423 members
Articles / Programming Languages / Javascript

Converting Camel Case Names to Human Case Labels

Rate me:
Please Sign up or sign in to vote.
3.00/5 (1 vote)
22 Dec 2021CPOL2 min read 4.1K   1  
A JavaScript function to turn "myObjectProperty" into "My Object Property"
Sometimes, you want to quickly build a data view from a JSON object using more human friendly labels for the actual data values. This function will do just that.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Database Developer self interested
United Kingdom United Kingdom
I have been a software developer for about 20 years, mostly in small IT department that means you do all the roles all the time from 1st line support to 3rd line diagnostics and help authoring. To be fair, I don't do enough of the later which in turn causes way too much of the former with new staff always ready to show you how unintuitive your interfaces are!

I generally consider myself a "data plumber" with the majority of my work in back end SQL. If I could rule the world by writing a SPROC I would....

New definition of Stoicism: Someone who start a career in I.T. and still has a career in I.T. after 20 years!

Comments and Discussions