Server IP : 80.87.202.40 / Your IP : 216.73.216.169 Web Server : Apache System : Linux rospirotorg.ru 5.14.0-539.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Dec 5 22:26:13 UTC 2024 x86_64 User : bitrix ( 600) PHP Version : 8.2.27 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/bitrix/ext_www/rospirotorg.ru/bitrix/js/main/parambag/src/ |
Upload File : |
export class ParamBag { constructor(params = {}) { if (!!params && typeof params === 'object') { this.params = new Map(Object.entries(params)); } else { this.params = new Map(); } } static create(params = {}) { return new ParamBag(params); } getParam(key: string, defaultValue = null) { if (this.params.has(key)) { return this.params.get(key); } return defaultValue; } setParam(key, value) { this.params.set(key, value); } clear() { this.params.clear(); } }