Closed tunnckoCore closed 6 years ago
this approach passed all of the tests of the other .has
method, since it was effectively doing the same thing (at least in non-edge-cases).
add hasOwn and union methods?
I was just thinking the same thing about union
today - I just refactored base-data
and could have used it. we can add union
but let me think about .hasOwn
. Honestly I almost always use .get
because I can get the same answer and use the resulting value if I need it, instead of doing two lookups (.has
then .get
)
Honestly I almost always use .get
Mm yea, me too. But it's logical to have. I think it can be in help for some users that don't got the things as we got it.
@jonschlinkert ping about the hasOwn and has.
Before was using
has-value(s)
, now is justtypeof val !== undefined
also add
hasOwn
andunion
methods?