Geeks With Blogs
Phubar Baz Musings of an HTML5 Programmer November 2013 Entries
TypeScript Enums to String
I just found an easy way to convert an enum value to its corresponding string value. Say you have the following enum.enum Numbers { zero, one, two, three, four }If you do Numbers.one you of course get the number 1. But let's say you have the enum value and you want to print it out. It's easy to get the string value by using an array indexer on the enum type.var myNumber = Numbers.two;var twoAsString = Numbers[myNumber]; // twoAsString == "two"It seems a little strange but it works. If you look at ......

Posted On Monday, November 25, 2013 4:48 PM

Win a copy of HTML5 Web Application Development by Example
This is your last week to sign up for my contest to win a copy of my book, HTML5 Web Application Development by Example. See my previous blog for instructions. http://wblo.gs/eE5

Posted On Monday, November 25, 2013 4:32 PM

Win a Free Copy of Packt's HTML5 Web Application Development By Example written by J.M. Gustafson!!
We are pleased to announce that we are organizing a giveaway especially for you. All you need to do is just comment below the post and win a free copy of HTML5 Web Application Development By Example. Two lucky winners stand a chance to win a copy of the book. Keep reading to find out how you can be one of the Lucky Ones. Overview of HTML5 Web Application Development By Example Packed with example applications that show you how to create rich, interactive applications and games. Shows you how to use ......

Posted On Saturday, November 16, 2013 11:28 AM

Copyright © PhubarBaz | Powered by: GeeksWithBlogs.net