Module: reactive

Methods

(static) filter(opertation) → {function}

filter() - This will create an operator that works the same as Array.prototype.filter.
Parameters:
Name Type Description
opertation function This function contains 1 argument which is the function that will work on a variable named data which will be passed to the function,
Source:
Returns:
- returns an function that takes a single arguments and passes that argument to the operating function
Type
function

(static) find(opertation) → {function}

find() - This will create an operator that works the same as Array.prototype.find.
Parameters:
Name Type Description
opertation function This function contains 1 argument which is the function that will work on a variable named data which will be passed to the function,
Source:
Returns:
- returns an function that takes a single arguments and passes that argument to the operating function
Type
function

(static) map(opertation) → {function}

map() - This will create an operator that works the same as Array.prototype.map.
Parameters:
Name Type Description
opertation function This function contains 1 argument which is the function that will work on a variable named data which will be passed to the function,
Source:
Returns:
- returns an function that takes a single arguments and passes that argument to the operating function
Type
function

(static) observable(node, event, handler) → {object}

observable() - This will create an observable of a nodes event that can be subscribed to and whose data can be operated on prior to executing subscriber handler
Parameters:
Name Type Description
node object This is the node that will be listened to for an event. If not node is available, assign null.
event string The name of the event
handler function The event handler for the triggered event. Here the observer object will be passed as first argument and you can execute (next(), error(), complete()) to alert the subscribers.
Source:
Returns:
- returns an object that contains the subscriber() and pipe()
Type
object

(static) operator(opertation) → {function}

operator() - This will create an operator based on the function passed into it, which will be used within the pipe() prior to exection of a subscription handler
Parameters:
Name Type Description
opertation function This function contain 1 argument which is the function that will work on a variable named data which will be passed to the function,
Source:
Returns:
- returns an function that takes a single arguments and passes that argument to the operating function
Type
function