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
function set(target, name, value) { | |
const attrConfig = target.constructor?.attributes[name]; | |
if (typeof attrConfig?.init === 'function') { | |
target[name] = attrConfig.init.call(this, value); | |
} | |
if (attrConfig?.defaultValue) { | |
target[name] = attrConfig.defaultValue; | |
} else if (typeof attrConfig?.transform === 'function') { | |
target[name] = attrConfig.transform.call(target, value); | |
} else { |
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
{ | |
"basics": { | |
"name": "Alberto Cantú Gómez", | |
"label": "CEO", | |
"picture": "", | |
"email": "betocantu93@gmail.com", | |
"phone": "+52 8125671871", | |
"website": "https://betocantu93.com", | |
"summary": "Software engineer as profession, passionate digital entrepreneur and investor, working everyday building teams and businesses from scratch and pushing them forward.", | |
"location": { |
OlderNewer