Util

Internal Utility methods
Source:

Methods

(static) serializeToQSParams(a) → {string}

Source:
Ripped from https://github.com/knowledgecode/jquery-param
Parameters:
Name Type Description
a object a javascript object
Returns:
the jquery-like querystring to send to the api
Type
string

(inner) camelToUnderscore(str) → {string}

Source:
Converts a string from camelCase to underscore_case
Parameters:
Name Type Description
str string the string to convert
Returns:
the string in under_scores
Type
string

(inner) convert(obj, conversionFn, newObjectopt) → {object}

Source:
Converts all the keys of an object by a conversionFn and returns a new object with the updated properties
Parameters:
Name Type Attributes Description
obj object the object to massage the property names for
conversionFn function the function to be called passing the object key
newObject object <optional>
the new object that is assembled (used in recursive calls)
Returns:
a new object with the properties massaged by conversionFn
Type
object

(inner) underscoreToCamel(str) → {string}

Source:
Converts a string from underscore_case to camelCase
Parameters:
Name Type Description
str string the string to convert
Returns:
the string in camelCase
Type
string