Class: Object

Object

new Object()

Source:

Methods

(static) assign(object, …extensions) → {Object}

Extends the object with properties from other objects.
Parameters:
Name Type Attributes Description
object Object
extensions Object <repeatable>
Source:
Returns:
The given object
Type
Object

(static) clone(source, deepopt) → {Object|Array}

Clones the given object and returns the clone.
Parameters:
Name Type Attributes Default Description
source Object | Array
deep Boolean <optional>
true
Source:
Returns:
Type
Object | Array

(static) create(object) → {Object}

Returns a new object inheriting form the given object.
Parameters:
Name Type Description
object Object
Source:
Returns:
Type
Object

(static) each(collection, callback, arrayLikeopt) → {Object|Array}

Simulates the foreach loop.
Parameters:
Name Type Attributes Default Description
collection Object | Array
callback function
arrayLike Boolean <optional>
false forces the loop to iterate the object the same way as an array
Source:
Returns:
The given collection
Type
Object | Array

(static) empty(value) → {Boolean}

Determines whether the object doesn't have any own properties (so it's empty) or is an empty value (null, undefined, 0, NaN, "").
Parameters:
Name Type Description
value *
Source:
Returns:
Type
Boolean

(static) fromQueryString(queryString, convertBoolsopt) → {Object}

Convert the given query string to an object.
Parameters:
Name Type Attributes Default Description
queryString String
convertBools Boolean <optional>
false
Source:
Returns:
Type
Object

(static) is(a, b) → {Boolean}

Strict equality with support for NaN and +0/-0 values.
Parameters:
Name Type Description
a *
b *
Source:
Returns:
Type
Boolean

(static) isAny(value) → {Boolean}

Determines whether the given value is an object.
Parameters:
Name Type Description
value *
Source:
Returns:
Type
Boolean

(static) isPlain(value) → {Boolean}

Determines whether the given value is a plain (not special) object.
Parameters:
Name Type Description
value *
Source:
Returns:
Type
Boolean

(static) keys(object) → {Array.<String>}

Returns an array of all enumerable properties.
Parameters:
Name Type Description
object Object
Source:
Returns:
Type
Array.<String>

(static) merge(…objects) → {Object}

Merges given objects to a single one and returns it.
Parameters:
Name Type Attributes Description
objects Object <repeatable>
Source:
Returns:
Type
Object

(static) owns(object, property) → {Boolean}

Determines whether the object owns the given property.
Parameters:
Name Type Description
object Object
property String
Source:
Returns:
Type
Boolean

(static) toQueryString(object, namespaceopt) → {String}

Convert the given object to a query string.
Parameters:
Name Type Attributes Description
object Object | Array
namespace String <optional>
Source:
Returns:
Type
String

„Nedostane-li žena koho chce, běda tomu, koho dostane.“ Mark Twain