Message from JavaScript discussions

November 2017

— The lib accepts regular JS objects

— 

There is functionality in it to have a currentPath variable in the semaphore, that changes on every item, do you mean that?

— Example of the 2 pathing algos

— One includes leafs/primitives, other just focuses on objects/arrays

— Man TG murders the image quality lol

— Then diffPaths returns similar arrays... but only when the path of object 1 differs from object 2

— Correct, the algorithm is dead simple

— Https://hastebin.com/safejukubu.js

— This builds the paths

main: function (state) {
strategies.nodePaths.main(state);
state.paths[state.paths.length] = Array.from(state.currentPath);
state.paths[state.paths.length - 1].push(state.accessor);
if (state.isLast) {
return state.paths;
}
}

Message permanent page

— state.currentPath is maintained by nodePaths

— There is a lot of that in the lib, sub-strategies that rely on others

— That's why I want to add more... you can run any number at once, and they will work together towards a common goal

Message permanent page