Aviv Roth
Currently viewing the category:
"JavaScript"
So I discovered this neat JavaScript hack: what do you do if you have a string that is the name of a function, that you want to convert to the function call itself?
Pretty simple actually. It turns out that:
object[‘method’]()
…evaluates to:
object.method()
Why/when is this useful? Well, I found […]
Recent Comments
- JPEREZGIL on REST calls in .NET (C#) over SSL (HTTPS)
- Reivaj810 on REST calls in .NET (C#) over SSL (HTTPS)
- Juancastein on Installing SharePoint 2013 on Windows Server 2012 R2 Preview
- Juancastein on Installing SharePoint 2013 on Windows Server 2012 R2 Preview
- Arjen Holterman on REST calls in .NET (C#) over SSL (HTTPS)
Categories