document.getElementById('field').parentNode.classList.add("newclass");
gulp.taskfunction sassToCss() {
// ...
}
exports.sass = sassToCss;
foreach ($xpath->query('//a/@href') as $href) {
echo $href->nodeValue, PHP_EOL;
}https://3v4l.org/0XlvA
str = str.charAt(0).toUpperCase() + str.slice(1);
// или
str = str.replace(/^./, m => m.toUpperCase());
// или
str = Array.from(str, (n, i) => i ? n : n.toUpperCase()).join('');
// или
str = (([ c = '', ...str ]) => c.toUpperCase().concat(...str))(str);