object spread operator javascript to old javsacript code example Example: spread operator es6 [...fruits]