> Reinventing the wheel is error prone.
Having a standard lib for these sort of functions is a common pattern many languages adopt.
Having a standard lib for these sort of functions is a common pattern many languages adopt.
Yes, the full "standard libarary" you can expect to be present on any given JS VM may vary, but there's no plausible reason that e.g. at() should not work on almost any conceivable platform.
True, NodeJS runtime comes with its own «standard library» but npm has nothing to do with it.