A common question: why would anyone publish a single-function module?
It might seem odd to have a module with just a single function (examples: clamp, is-dom, is-url, object-assign, point-in-polygon). Sometimes your tests and documentation are longer than the function itself. Let's examine some of the benefits to this approach...
- a terse and frozen API does not end up with the scope creep or code rot that larger frameworks and "standard libraries" tend to carry.
- it encourages diversity rather than "this is the one true way" (e.g. robust-point-in-polygon handles edge cases at so