Skip to content
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

Merged
merged 15 commits into from
May 3, 2016
Merged

Inits squirrel@3 #13

merged 15 commits into from
May 3, 2016

Conversation

godu
Copy link
Contributor

@godu godu commented Apr 22, 2016

No description provided.

@godu godu force-pushed the squirrel-v3 branch 2 times, most recently from 403e10f to 830ecdb Compare April 25, 2016 12:49
@godu godu force-pushed the squirrel-v3 branch 2 times, most recently from 68fbca8 to 164d8d7 Compare April 25, 2016 14:54
@godu godu assigned jfmengels and unassigned lcalvy Apr 27, 2016
@godu godu assigned lcalvy and unassigned jfmengels Apr 27, 2016
@chrisdugne
Copy link
Contributor

@godu juste une proposition pour rendre squirrel.js plus lisible --> #16
sinon faut encore que je lise, vite compliqué ce morceau : )

return ready('indexes').then(indexes => {
return has(key, indexes[index]) ?
get_(key, indexes[index]).value :
null;
Copy link
Contributor

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)) ?

Copy link
Contributor Author

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) 

Copy link
Contributor

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

@jfmengels
Copy link
Contributor

Quelques simplifications pour ma part, bon boulot @godu 👍

return startsWith(child.key, _path);
}, node.nodes));
};
}, 2);
Copy link
Contributor

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)

@jfmengels
Copy link
Contributor

👍 pour moi

@godu godu merged commit 8eebebe into master May 3, 2016
@godu godu deleted the squirrel-v3 branch May 3, 2016 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants