intval

Returns sensible integer value of a given variable. Unlike parseInt it will never return NaN and you can set a default value to be returned in case the variable is undefined! Hence you can write even cleaner code. So if it's supposed to be an integer, cas

moment-from-valueof

This module is a helper for objects that have used valueOf and you'd like to get all the values back out. My need was hang a large state where all my moment values were stored as valueOf and I wanted to mass convert these values to formatted values (for