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}
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}
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}
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}
Parameters:
Name | Type | Description |
---|---|---|
subject |
* | Subject of examination |
Returns:
Verdict
- Type
- boolean