Skip to content

Commit

Permalink
Use recursion to handle arrays such as addresses. Also filter out non…
Browse files Browse the repository at this point in the history
…-available functions
  • Loading branch information
daern91 committed Feb 4, 2018
1 parent 7901a01 commit 7beb0b9
Show file tree
Hide file tree
Showing 5 changed files with 1,077 additions and 43 deletions.
7 changes: 3 additions & 4 deletions bin/cli.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#!/usr/bin/env node

const program = require('commander')
const lib = require('../src')
const path = require('path')

program
Expand All @@ -12,9 +11,9 @@ program
const filePath = path.join(process.cwd(), args.file)
console.log(filePath)

const data = require('../testCustomers/data.json'),
newData = require(filePath),
buildActions = require('../src/buildActions')
const data = require('../testCustomers/data.json')
const newData = require(filePath)
const buildActions = require('../src/buildActions')

function findCustomer (id) {
for (const item of data) {
Expand Down
Loading

0 comments on commit 7beb0b9

Please sign in to comment.