owp.core
v2.2.0
Published
JS core agumentation
Downloads
4
Maintainers
Readme
OpenWebProject Core
JS core agumentation
Adds functions to augment JS core types/prototypes
Examples of new functionality is:
- Array: unique, remove, contains
- Object: forEach, map, reduce
- String: format, replaceAll, equalsIgnoreCase
- Date: format
- Math: clamp
For specifics see readme in each src/type directory.
Installation
npm install owp.core --save
Usage
//Using named exports
import { sortBy, unique } from "owp.core/array";
import { format } from "owp.core/string";
//Using default export
import sortBy from "owp.core/array/sortBy";
import unique from "owp.core/array/unique";
import format from "owp.core/string/format";