Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
"hello world".capitalize() не роботает
@selector [[NEW_VARIABLE]].charAt(0).toUpperCase() + [[NEW_VARIABLE]].slice(1) or [[NEW_VARIABLE]].replace(/^./, [[NEW_VARIABLE]][0].toUpperCase())
@hvrsh мужик, я тебе безумно благодарен, капец как помог. С этой проблемой несколько часов боролся
@Symposium said in Сделать массив одномерным:
@Daniel var arr = [1,2,[3,4],5]; [[NEW_ARR]] = Array.prototype.concat.apply([], arr);
@Daniel
Спасибо за помощь, работает
@denis_krsk О, нет, я не понимаю, как я мог быть таким глупым. большое спасибо за помощь!
Благодарю, всё работает. Нужно почитать про регулярные выражения.