let entries = [['key1','val1'],['key2':'val2']];
Object.fromEntries(entries); // {key1: 'val1', key2: 'val2'}
let str = ' str ';
str.trimStart();
str.trimLeft();
str.trimEnd();
str.trimRight();
let arr = [[1,2,[3,4,[5]]],[6,7]];
arr.flat(); // [1,2,[3,4,[5]],6,7]
arr.flat(Infinity); // [1,2,3,4,5,6,7]
let arr = ['123','456'];
arr.flatMap((v) => v.split('')); // ['1','2','3','4','5','6']