Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
Add simple spread operator
Browse files Browse the repository at this point in the history
  • Loading branch information
sicktastic committed Sep 2, 2017
1 parent 1ffa343 commit e2d7ca8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions es6/spread_operator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
'use strict';

const originalFlavors = ['Chocolate', 'Vanilla'];

const newFlavors = ['Strawberry', 'Mint Chocolate Chip'];

const inventory = ['Rock Road', ...originalFlavors, 'Neopolitan', ...newFlavors];

console.log(inventory);

0 comments on commit e2d7ca8

Please sign in to comment.