🌟nested default values
Last updated
Was this helpful?
Last updated
Was this helpful?
Was this helpful?
JS ⟩ operator ⟩ assignment ⟩ destructuring ⟩ nested default values
replit: nest default values
// ⭐ test cases
const opts = [
{},
{ pad: {} },
{ pad: { length: 10 } },
{ pad: { length: 1, char: