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}]}} // tree: {foo: [{bar: 1}], hey: {there: [{bar: 2}]}}
// selector: **[*].bar // selector: **[*].bar
const findInTree = (tree, selector, onResult) => { const findInTree = (tree, selector, onResult) => {
scanner([selector], { scanner([selector], {
joined: false, joined: false,
filterFn: (key, value, { parents }) => { filterFn: (key, value, { parents }) => {
onResult(value, parents[0], key); onResult(value, parents[0], key);
} }
})(tree); })(tree);
} }
module.exports = findInTree module.exports = findInTree