Object

Object

# new Object()

Members

# (static) Object# :object

Type:
  • object

Methods

# (static) can(funcName) → {boolean}

Checks wether a specific function is available on an object
Parameters:
Name Type Description
funcName string The name of the function
Returns:
Type
boolean
Example
j.app.can("render"); // returns true, since render() exists on the app object

# (static) isset(propName) → {boolean}

Checks wether a specific property is set on the object
Parameters:
Name Type Description
propName string The name of the function
Returns:
Type
boolean
Example
j.app.isset("state"); // returns true, since a variable "state" exists on the app object

# (static) size() → {number}

Checks for the size of an object similar to ".length" on arrays
Returns:
Type
number
Example
j.app.state.size(); // returns the number of entries on the state object (not recursive)