diff --git a/src/index.js b/src/index.js index 4fbe949..48fd3e8 100644 --- a/src/index.js +++ b/src/index.js @@ -46,7 +46,6 @@ function repath(data, root, keys, tProps) { const d = root ? data[root] : data const tPropsKeys = Object.keys(tProps) const _ = d.map(item => repathItem(item, keys, tPropsKeys, tProps)) - console.log(d) return _ } function repathItem(item, keys, tPropsKeys, tProps) { @@ -63,7 +62,6 @@ function repathItem(item, keys, tPropsKeys, tProps) { } const getObjectValueFromPath = (obj, path) => { const pathParts = path.split('.') - console.log('yu',path) let o = obj while (pathParts.length && o) { o = o[pathParts.shift()] diff --git a/test/index.js b/test/index.js index a850795..f2da617 100644 --- a/test/index.js +++ b/test/index.js @@ -22,7 +22,6 @@ function run() { ).join(',') }).join(',') ) - console.log(allObserved) for (const [index, [description, expected]] of tests.entries() ) { const isOk = expected === allObserved[index] add(index, description, isOk)