By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents
import { expect } from 'chai' | |
const head = (arr = []) => arr.slice(0)[0] | |
const tail = (arr = []) => arr.slice(1) | |
const last = (arr = []) => arr.slice(0).pop() | |
const init = (arr = []) => arr.slice(0, arr.length - 1) | |
const subExpression = (tokens, depth = 0, currentBranch = []) => { | |
if (tokens.length === 0 || head(tokens) === ')') { | |
return [currentBranch, tail(tokens)] |
By: @BTroncone
Also check out my lesson @ngrx/store in 10 minutes on egghead.io!
Update: Non-middleware examples have been updated to ngrx/store v2. More coming soon!
Table of Contents