Skip to content

Linting, Ignoring, and Fill Missing Update

Latest
Compare
Choose a tag to compare
@haykam821 haykam821 released this 03 May 23:22
· 5 commits to master since this release

This update includes a new parameter, fillMissing (enabled by default), that allows you to control whether entries in the first array will be filled in the resulting object regardless of whether or not they have a corresponding entry in the second array. For example, input keys being ["a", "b", "c"] and input values being [0, 1] with this new property enabled will result in the output object being {"a": 0, "b": 1, c: null}.

Other changes in this update:

  • The environment for the tests in ESLint includes Mocha so it will not yell at you for describe and it being undefined.
    • Oh, and speaking of that, ESLint was added.
  • Chai and Mocha are now developer dependencies like they should be.
    • And of course, ESLint is among the developer dependencies since it was added in this update.
  • The version was bumped.
  • It is now available on NPM.