new Utils()
- Source:
Classes
Methods
-
<static> extend(deep, target) → {object}
-
This is a slightly modified version of http://api.jquery.com/jQuery.extend/
Parameters:
Name Type Description deepboolean Perform a deep copy?
targetobject The target object to copy to.
- Source:
Returns:
The extended object.
- Type
- object
-
<static> isPlainObject(obj) → {boolean}
-
This is a slightly modified version of jQuery.isPlainObject. A plain object is an object whose internal class property is [object Object].
Parameters:
Name Type Description objobject The object to inspect.
- Source:
Returns:
- true if the object is plain, otherwise false.
- Type
- boolean
-
<static> pad(str, len, pad, dir) → {string}
-
Javascript string pad http://www.webtoolkit.info/. pad = the string to pad it out with (defaults to a space) dir = 1 (left), 2 (right), 3 (both)
Parameters:
Name Type Argument Default Description strstring The target string.
lennumber Description.
padnumber the string to pad it out with (defaults to a space).
dirnumber <optional>
3 the direction dir = 1 (left), 2 (right), 3 (both).
- Source:
Returns:
The padded string
- Type
- string
-
<static> shuffle(array) → {array}
-
A standard Fisher-Yates Array shuffle implementation.
Parameters:
Name Type Description arrayarray The array to shuffle.
- Source:
Returns:
The shuffled array.
- Type
- array