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

Add init function #288

Merged
merged 3 commits into from
May 14, 2018
Merged

Add init function #288

merged 3 commits into from
May 14, 2018

Conversation

frinyvonnick
Copy link
Contributor

Prerequisites

Description

Add init function

Issue : #234

@frinyvonnick frinyvonnick requested a review from nlepage as a code owner May 3, 2018 12:55
@codecov-io
Copy link

codecov-io commented May 3, 2018

Codecov Report

Merging #288 into dev will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@         Coverage Diff         @@
##            dev   #288   +/-   ##
===================================
  Coverage   100%   100%           
===================================
  Files        96     97    +1     
  Lines       279    280    +1     
===================================
+ Hits        279    280    +1
Impacted Files Coverage Δ
packages/immutadot/src/object/create.js 100% <100%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update afdcc17...4ab6cdf. Read the comment docs.

Copy link
Member

@nlepage nlepage left a 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 ?

@frinyvonnick
Copy link
Contributor Author

I guess, you are right. create seems more accurate 👍 !

nlepage
nlepage previously approved these changes May 14, 2018
Copy link
Member

@nlepage nlepage left a 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', () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createialize -> create

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oups 👍

@frinyvonnick frinyvonnick merged commit 09ecc6d into dev May 14, 2018
@nlepage nlepage mentioned this pull request May 15, 2018
2 tasks
@nlepage nlepage deleted the feature/234 branch May 15, 2018 06:21
nlepage pushed a commit that referenced this pull request Jan 22, 2019
* ✨ Add init function in object namespace

* 🚚 Rename init into create

* ✏️ Fix typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants