Closed robhil closed 7 years ago
Merging #2 into master will not change coverage. The diff coverage is
100%
.
@@ Coverage Diff @@
## master #2 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 1 1
Lines 13 13
Branches 6 6
=====================================
Hits 13 13
Impacted Files | Coverage Δ | |
---|---|---|
src/index.js | 100% <100%> (ø) |
:arrow_up: |
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 ac254c1...a0fa2bc. Read the comment docs.
@robhil Thanks for bringing this up!
Why would anyone really extend the Object prototype this way?
@jbucaran Personally Im not big fun of extending prototypes of native objects but I saw a lot of projects where developers do it. E.g. You want to use Object.prototype.assign, but you have to support IE where there is no assign fn. so you can implement your own function
HI, I found issue in your code: Check here: https://codepen.io/anon/pen/QqWzPy I added
myFunction2
to Object.prototype and your function returnmyFunction2
as a class. I wrote some unit tests and fix for this issue