CoreFunc
CoreFunc - is a collection of core functions for various tasks. It consists of useful one-liner helpers and more complicated functions.
Why.
-
All functions are written to work with CommonJS and ECMAScript modules.
-
.JS, .CJS, .MJS, .TS files are in package. Wherever you prefer.
-
Don't extend any built-in objects. No prototype pollution at all.
-
You can steal the code if you don't want to use the whole package.
Most functions are not bound to other functions in the library.
-
It's super easy for Tree Shaking, no need for Dead Code Hunting.
What is the purpose?
-
Iterate, check, sort, find on primitives, arrays, objects.
-
Manipulate, convert, generate values.
📚 Documentation ➜ corefunc.github.io
Recommended usage for Tree Shaking:
CommonJS import
const bubbleSort = require("@corefunc/corefunc/array/sort/bubble.cjs");
bubbleSort([3, 1, 2]);
ECMAScript Module
import bubbleSort from "@corefunc/corefunc/array/sort/bubble.mjs";
bubbleSort([3, 1, 2]);
TypeScript
import bubbleSort from "@corefunc/corefunc/array/sort/bubble";
bubbleSort([3, 1, 2]);
See also
My other projects
Also there is more useful links: