Object

Namespace

Object

Source:

Methods

(static) assign()

Description:
  • Polyfill for ECMAScript 2015 for Object.assign https://www.ecma-international.org/ecma-262/6.0/#sec-object.assign
Source:

(static) copy(src, dst, whatopt) → {void}

Description:
  • Copy key and values from src Object to dst Object
Source:
Parameters:
Name Type Attributes Description
src Object Source
dst Object Destination
what Array | null <optional>
What should be copied? By default, those are all keys and values from source
Returns:
Type
void

(static) count(subject) → {number}

Description:
  • Count number of items in given subject
Source:
Parameters:
Name Type Description
subject Object Subject of examination
Returns:
Number of items
Type
number

(static) deepAssign() → {object}

Description:
  • This is similar to Object.assign, but extends also deep nested Objects
Source:
Returns:
Object
Type
object

(static) isLike(subject, query) → {boolean}

Description:
  • Returns verdict if subject match query
Source:
Parameters:
Name Type Description
subject Object Subject of examination
query Object | * Query - if object then will compare each key of query with subject, otherwise will just use standard comparator
Returns:
Verdict
Type
boolean

(static) isObject(subject) → {boolean}

Description:
  • Returns verdict if given subject is Object or not
Source:
Parameters:
Name Type Description
subject * Subject of examination
Returns:
Verdict
Type
boolean

(static) values()

Description:
  • Polyfill for ECMAScript 2017 for Object.values https://www.ecma-international.org/ecma-262/8.0/#sec-object.values
Source: