Recent | Popular
#javascript #spread #object #oop
const person = { name: 'Sam', age: 300, } const twinPerson = { ...person }
#arguments #spread
// bad function concatenateAll() { const args = Array.prototype.slice.call(arguments); return args.join(''); } // good function concatenateAll(...args) { return args.join(''); }
Tue Oct 12 2021 13:32:02 GMT+0000 (Coordinated Universal Time)
Thu Aug 19 2021 17:41:31 GMT+0000 (Coordinated Universal Time) https://github.com/airbnb/javascript