-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inits squirrel@3 #13
Inits squirrel@3 #13
Conversation
403e10f
to
830ecdb
Compare
68fbca8
to
164d8d7
Compare
return ready('indexes').then(indexes => { | ||
return has(key, indexes[index]) ? | ||
get_(key, indexes[index]).value : | ||
null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ready('indexes').then(getOr([index, key, 'value'], null))
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
enfoiré, tu m'as induit en erreur
_.getOr has an order of (c, b, a)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, sorry. J'aurai appris quelque chose du coup siffle
Quelques simplifications pour ma part, bon boulot @godu 👍 |
return startsWith(child.key, _path); | ||
}, node.nodes)); | ||
}; | ||
}, 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Le 2
est inutile ici, et pour le coup, même ignoré dans lodash/fp (curryN
si jamais tu en as besoin un jour je crois, avec N probablement en 1er arg)
👍 pour moi |
No description provided.