The ability to reply to discussions is limited to PRO members. Want to join in the discussion? Click here to subscribe now.

Use Concat to Add Values to an Array

Use Concat to Add Values to an Array

4:38
Concat creates a shallow copy of an existing array that includes any arguments you pass to it. In this lesson, we look at using concat for adding additional values to an array then cover some more useful features such as accepting other arrays as arguments & how to chain concat with other array methods such as `forEach`
Watch this lesson now
Avatar
egghead.io

Concat creates a shallow copy of an existing array that includes any arguments you pass to it. In this lesson, we look at using concat for adding additional values to an array then cover some more useful features such as accepting other arrays as arguments & how to chain concat with other array methods such as forEach

Avatar
Francesco

Would someone be able to tell me what web editor Shane Osbourne uses during his Array videos? It looks like a really nice simple left / right "repl" output using NodeJS, but i'm not sure which one it is and wanted to try it. Thanks for your time and patience and all of you keep up the great work! - Frankie

Avatar
Shane

Hi Francesco

It's just https://www.jetbrains.com/webstorm/

Then I have a run configuration setup to a key binding, so at any point I can hit CMD + SHIFT + P and the current file will be executed using Node

In reply to Francesco
Avatar
Francesco

Thanks Shane, that in itself seems like a really cool little video tip. Awesome stuff :)

In reply to Shane
Avatar

Hi Francesco

It's just https://www.jetbrains.com/webstorm/

Then I have a run configuration setup to a key binding, so at any point I can hit CMD + SHIFT + P and the current file will be executed using Node

Any chance you can tell us how to set that up? Looks very convenient

In reply to Shane
Avatar
alejandropereira

Hello Shane, how could i use concat, but append items to the start of the array?

HEY, QUICK QUESTION!
Joel's Head
Why are we asking?