Created
January 14, 2023 04:23
-
-
Save bkrajendra/3c4ca842b338bb08e5bcc182d38df05a to your computer and use it in GitHub Desktop.
Application property processor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Simple appproach for merging with subset of properties from json oject. | |
// Default Properties | |
const default_rolestudio = { | |
portal_name: 'Role Studio', | |
rolename_maxwidth: 200, | |
nested_property1: {value1: 30, value2: 20}, | |
nested_property2: {value1: 30, value2: 20} | |
}; | |
// Custom Properties | |
const custom_rolestudio = { | |
rolename_maxwidth: 285, | |
nested_property1: {value1: 33, value2: 20} | |
}; | |
// Merged Properties | |
const rolestudio = { | |
...default_rolestudio, | |
...custom_rolestudio | |
}; | |
console.log(rolestudio); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment