git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
const team = Array.of('Black Panther', 'Wolverine', 'X-23', 'Sabertooth'); | |
console.log(team); |
const users = [ | |
{ | |
"_id": "5a0b7a6441a687091332f11b", | |
"index": 0, | |
"guid": "0d3bba05-ecde-4237-b53e-0bd474239ee2", | |
"isActive": false, | |
"balance": "$2,144.22", | |
"picture": "http://placehold.it/32x32", | |
"age": 32, | |
"eyeColor": "green", |
const avengers = ['Thor', 'The Hulk', 'Captain America']; | |
let guardians = ['Star Lord', 'Gamorra', 'Drax', 'Rocket', 'Groot']; | |
// Spread out arrays in a new array and put a new value in between them | |
const heroes = [...avengers, 'Loki', ...guardians]; | |
// Adding new stuff to an array just got easier too | |
guardians = [...guardians, 'Mantis', 'Yondu', 'Nebula']; | |
// Or simply making a TRUE copy of an array | |
const avengersCopy = [...avengers]; |
const text = text.replace(/\s(?=[^\s]*$)/g, ' '); |
git clone [email protected]:YOUR-USERNAME/YOUR-FORKED-REPO.git
cd into/cloned/fork-repo
git remote add upstream git://github.com/ORIGINAL-DEV-USERNAME/REPO-YOU-FORKED-FROM.git
git fetch upstream
/* | |
* Using the library ramda, what is the result of the following code? | |
* R.reduce((acc,x) => R.compose(R.flip(R.prepend)(acc), R.sum,R.map(R.add(1)))([x,...acc]), [0])([13, 28]); | |
* Explain each of the steps the best you can. | |
*/ | |
const R = require('ramda'); | |
// Reduce function iterating over [13, 28] | |
// starting point: [0] | |
const test = R.reduce( |
const webpack = require('webpack'); | |
const path = require('path'); | |
module.exports = { | |
entry: './src/main.js', | |
output: { | |
path: path.resolve(__dirname, './build'), | |
filename: 'bundle.js', | |
}, | |
module: { |