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

Individual loading of functions #31

Open
El-Dringo-Brannde opened this issue Aug 14, 2018 · 0 comments
Open

Individual loading of functions #31

El-Dringo-Brannde opened this issue Aug 14, 2018 · 0 comments
Labels
help wanted Extra attention is needed

Comments

@El-Dringo-Brannde
Copy link
Owner

El-Dringo-Brannde commented Aug 14, 2018

Like Lodash,

users should be able to specify what functions they want to extract and put in their package.

As such, importing should look like this:

import try from 'perfected-prototypes/Object/try'

const foo = {
       a: 1, 
       b:2 
}

console.log(foo.try('a.b.c.d'))
// -> undefined
@El-Dringo-Brannde El-Dringo-Brannde added the help wanted Extra attention is needed label Aug 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant