defunctzombie / package-browser-field-spec

Spec document for the 'browser' field in package.json

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ignored packages: Benefits of empty object over false?

mk-pmb opened this issue · comments

commented

Hi, thanks for maintaining the spec!
Is there a special reason why an empty (but truthy) object was chosen as replacement for ignored packages?
I'd consider false not only more straightforward as it's used in the config, but also more convenient:

  • Can easily be tested as false-y – advantage over empty objects
  • Doesn't break property access – advantage over null and undefined