reduce() – то можно редьюсить массив аргументов до одного результирующего объекта: const mergeObjects = (...args) => args.reduce((acc, c) => Object.assign(acc, c));mergeObjects({a: 'A'}, {b: 'B'}, {c: 'C', a: 'AAA'})
// { a: "AAA", b: "B", c: "C" }const mergeObjects = (...args) => args.reduce((acc, c) => ({...acc, ...c}), {});
Returns the original document by default. Returns the updated document if returnNewDocument is set to true or returnDocument is set to after.
Меня просто поражает то, что за несколько лет Майкрософт так и не дали людям возможность отключать этот бред.Потому что "проблемы индейцев"© и этот бред поставляется в виде хардкода в
InputSwitch.dll. @echo off
set /A LVL=%1+1
if %LVL% LEQ 3 %0 %LVL% |%0 %LVL%