utils Class
Item Index
Methods
combine
(
String
-
glue
-
str1
Combines multiple strings into one, making sure that the glue-string doesn't get applied when not required
Returns:
extendApply
(
Object
-
obj
-
objects
-
[fn]
An extend function that applies the result of a callback to each item
Parameters:
Returns:
Object:
Destination object
fileNameSafe
(
String
-
str
Turns a string into a filesystem safe filename
Parameters:
-
str
String
Returns:
require
(
-
module
-
[defaultValue]
Safely requires a module
Parameters:
-
module
StringModule name or path
-
[defaultValue]
optionalDefault value if the module cannot be found
Returns:
:
superWrapper
(
-
currentItem
-
previousItem
Wraps a function into another function that sets another function as the __super() function This is used to wrap every single function of an object so that one can call
this.__super();
to call its parent function that was overwritten.
Parameters:
-
currentItem
-
previousItem
Returns:
: