[Link to npm](https://www.npmjs.com/package/@a-arsenij/monkeypatch)
Collection of additional std methods for Arrays/Sets/Maps/Iterables, inspired by Kotlin's standard library.
Write this to your entrypoint:
``typescript``
///
import { monkeyPatch } from "@a-arsenij/monkeypatch/monkeypatch";
monkeyPatch();
We still don't have extension methods in JS/TS, that's why we have to do all this nasty changes in prototypes.
Links to like/vote for:
- https://github.com/tc39/proposal-extensions
- https://github.com/microsoft/TypeScript/issues/9