-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add init function #288
Add init function #288
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #288 +/- ##
===================================
Coverage 100% 100%
===================================
Files 96 97 +1
Lines 279 280 +1
===================================
+ Hits 279 280 +1
Continue to review full report at Codecov.
|
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.
LGTM, however I'm not quite sure of the name init
, it is very vague.
I had thought of create
, which is much more familiar, but since there is no prototype
involved here it is a bit misleading.
@frinyvonnick What do you think ?
I guess, you are right. |
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.
Just the typo in the test
import { create } from 'object' | ||
import { immutaTest } from 'test.utils' | ||
describe('object.create', () => { | ||
it('should createialize objects', () => { |
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.
createialize -> create
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.
Oups 👍
* ✨ Add init function in object namespace * 🚚 Rename init into create * ✏️ Fix typo
Prerequisites
Description
Add init function
Issue : #234