Skip to content

Commit

Permalink
code cleansing
Browse files Browse the repository at this point in the history
  • Loading branch information
thipages committed Dec 18, 2024
1 parent 6f36076 commit cc8a286
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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()]
Expand Down
1 change: 0 additions & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cc8a286

Please sign in to comment.