mesqueeb / is-what

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.
https://mesqueeb.github.io/is-what/
MIT License
170 stars 18 forks source link

Split src/index.ts into multiple files #69

Closed jcbhmr closed 1 year ago

jcbhmr commented 1 year ago

Attempting to be tackled in #57. This is the discussion portion so that the PR is about the "how" and "what" and this issue is about the "why" "who" and "when". 😉

This is a good idea because:

  1. Having one thing per file encourages you to fill that screen space with DOCS!
  2. Having one thing per file is general good practice to compartmentalize things
  3. You can more easily see what specific functions are touched by diffs or PRs since each one is its own file!
  4. Some popular JS styleguides say that this is a good idea 🤷‍♀️