Blog Archives

Access variable property by Name as String ?

Tweet If i have a javascript object that looks like below var employee = { job: programmer, address : India, status : single } and i have a function that is passed both the object, and a property name like

Posted in Snippets Tagged with: ,