function clear_key(obj, k) {
if(obj && k) {
Object.keys(obj).forEach(key => {
obj[key][k] = undefined;
});
return;
}
throw 'Object and key is required';
}
function clear_key(obj, k) {
if(obj && k) return Object.keys(obj).forEach(key => obj[key][k] = undefined);
throw 'Object and key is required';
}
parseInt(atob(_0x5fd69b)[_0x00dd('0x2')](/\D/g, '')
_0x00dd('0x2')
let a = btoa(12345);
console.log(parseInt(atob(a)[0].replace('2', '')))
.test(str) => .test(el)
function pigIt(str){
const splitted = str.split(' ');
return splitted.map(el => {
console.log(el)
if(el.length === 1 && !new RegExp(/^[a-zA-Zа-яА-Я0-9]+$/).test(el)) return el;
const es = el.split('');
es[es.length] = es[0];
es.splice(0, 1);
return es.join('') + 'ay';
}).join(' ');
}
<form action="/send_file" method="post" enctype="multipart/form-data" class="upload_form" id="file-upload">
<input type="file" name="avatar" id="file" multiple>
<button class="begin_uploading_button">Загрузить файлы</button>
<label for="file" class="upload_label">Выбрать файл</label>
<input type='text' name='some_data' value='some value' style='display: none'>
<input type="submit" name="submit" value="Загрузить" class="submit_button">
</form>
static init() // - make static method
async function bootstrap() { // change main.ts
if (!ConfigService.init()) {
console.error('Invalid config');
return;
}
const app = await NestFactory.create(AppModule);
// тут как-то нужно запустить метод init из сервиса config модуля.
await app.listen(3000);
}