amend: converted spaced to tabs

This commit is contained in:
Lukas Siemon 2020-01-26 09:21:21 -08:00 committed by Jannis Redmann
parent 8c6a8d858e
commit cf69ff4bc8

View file

@ -9,12 +9,12 @@ const scanner = require('object-scan')
// tree: {foo: [{bar: 1}], hey: {there: [{bar: 2}]}}
// selector: **[*].bar
const findInTree = (tree, selector, onResult) => {
scanner([selector], {
joined: false,
filterFn: (key, value, { parents }) => {
onResult(value, parents[0], key);
}
})(tree);
scanner([selector], {
joined: false,
filterFn: (key, value, { parents }) => {
onResult(value, parents[0], key);
}
})(tree);
}
module.exports = findInTree