Make repetitive and long code easier
$yarn add pakijs
$npm install pakijs
import "pakijs";
// or
require("pakijs");
<script src="https://unpkg.com/pakijs/dist/browser.js"></script>
"World".override(0, 0, "Hello ");
// Hello World
long code to short code:
Object.values({ a: 0, b: 1 }).forEach((e) => {
// ...
});
to:
({ a: 0, b: 1 }.forEach((e) => {
// ...
}));
MIT License