-
static assign()
-
Polyfill for ECMAScript 2015 for Object.assign
https://www.ecma-international.org/ecma-262/6.0/#sec-object.assign
-
static copy(src, dst, whatopt)
→ {void}
-
Copy key and values from src Object to dst Object
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:
void
-
static count(subject)
→ {number}
-
Count number of items in given subject
Parameters:
Name |
Type |
Description |
subject |
Object
|
Subject of examination |
Returns:
number
- Number of items
-
static deepAssign()
→ {object}
-
This is similar to Object.assign, but extends also deep nested Objects
Returns:
object
- Object
-
static isLike(subject, query)
→ {boolean}
-
Returns verdict if subject match query
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:
boolean
- Verdict
-
static isObject(subject)
→ {boolean}
-
Returns verdict if given subject is Object or not
Parameters:
Name |
Type |
Description |
subject |
*
|
Subject of examination |
Returns:
boolean
- Verdict
-
static values()
-
Polyfill for ECMAScript 2017 for Object.assign
https://www.ecma-international.org/ecma-262/8.0/#sec-object.values