Skip to content

Instantly share code, notes, and snippets.

@bkrajendra
Created January 14, 2023 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bkrajendra/3c4ca842b338bb08e5bcc182d38df05a to your computer and use it in GitHub Desktop.
Save bkrajendra/3c4ca842b338bb08e5bcc182d38df05a to your computer and use it in GitHub Desktop.
Application property processor
// 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