File manager - Edit - /home/web/vm-3fadc827.na4u.ru/www/bitrix/modules/sale/install/js/sale/payment-pay/lib/src/settings.js
Back
export class Settings { constructor(settings) { this.settings = settings; } get(name, defaultValue) { let parts = name.split('.'); let currentOption = this.settings; let found = false; parts.map((part) => { if (currentOption && currentOption.hasOwnProperty(part)) { currentOption = currentOption[part]; found = true; } else { currentOption = null; found = false; } }); return found ? currentOption : defaultValue; } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.26 |
proxy
|
phpinfo
|
Settings