Instead of 4 arguments in function:
facebook: function(facebook, contacts, user, path)
You can use every argument for every nested level
facebook: function(facebook, contacts, user)
F. e.
var obj = {
a: {
b: {
c: {
d: '123'
}
}
}
}
var schema = {
a: {
b: {
c: {
e: (e, c, b, a, obj) => {
//If you want to get original object it will be guaranteed last argument
obj = Array.from(arguments).pop();
//But it's easier to use this
obj = this
}
}
}
}
}
Instead of 4 arguments in function:
You can use every argument for every nested level
F. e.