@corefunc/corefunc
v0.3.67
Published
Collection of utilities
Downloads
620
Maintainers
Readme
CoreFunc
CoreFunc - is a collection of core functions for various tasks. It consists of useful one-liner helpers and more complicated functions.
➡️ C o r e F u n c . G i t H u b . i o ⬅️
Introduction
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.
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
Also there is more useful links: