forked from WhichBrowser/Parser-JavaScript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBase.js
More file actions
25 lines (24 loc) · 605 Bytes
/
Base.js
File metadata and controls
25 lines (24 loc) · 605 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/**
* @internal
*/
class Base {
/**
* Set the properties of the object the the values specified in the object
*
* @param {Object|null} defaults An Object, the key of an element determines the name of the property
*/
constructor(defaults) {
defaults && this.set(defaults);
}
/**
* Set the properties of the object the the values specified in the object
*
* @param {Object} properties An Object, the key of an element determines the name of the property
*
* @internal
*/
set(properties) {
Object.assign(this, properties);
}
}
module.exports = Base;