func

func

Source:

Methods

(static) addGlobal(obj) → {Object}

Add properties to all the objects, Existing as well as To be created. Avoid using this utility in bigger projects

Source:
Parameters:
Name Type Description
obj Object

Object to properties

Returns:
Type:
Object
  • Null Object

(static) fromJson(json) → {Object}

Convert JSON to Object

Source:
Parameters:
Name Type Description
json String

JSON representation of the object to retrieve

Returns:
Type:
Object
  • JSON to Object

(static) sort(arr, orderopt) → {Array}

Sort a given array (passed as argument)

Source:
Parameters:
Name Type Attributes Default Description
arr Array

Array to be sorted

order String <optional>
ASC

Ascending ASC | Descending DESC

Returns:
Type:
Array
  • Sorted Array