owp.core

2.2.0 • Public • Published

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";

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i owp.core

      Weekly Downloads

      0

      Version

      2.2.0

      License

      MIT

      Unpacked Size

      18.4 kB

      Total Files

      33

      Last publish

      Collaborators

      • andreas_arvidsson