Skip to content

The MellowCobra Library for JavaScript is a collection of common methods for standard operations to fill in gaps in the existing standard JS library

License

Notifications You must be signed in to change notification settings

MellowCobra/mc-lib-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MC Lib

@mellow.cobra/lib

The MellowCobra Library for JavaScript is a collection of common methods for standard operations to fill in gaps in the existing standard JS library.

It contains functions for common operations that I find myself doing all over the place.

Documentation

Documentation is built from the code directly using TypeDoc and can be viewed here

Modules:

  • Arr - A collection of methods for dealing with arrays
  • Fn - A collection of methods for dealing with functions
  • Obj - A collection of methods for dealing with objects
  • Str - A collection of methods for dealing with strings
  • Util - A collection of utility methods for checking equality of various values

Installation

NPM

npm install @mellow.cobra/lib

Yarn

yarn add @mellow.cobra/lib

Usage

Import each module as needed

import { Arr } from "@mellow.cobra/lib"

console.log(Arr.lastItem([1, 2, 3]))   // 3

Import all modules in a single namespace

import MCLib from "@mellow.cobra/lib"

console.log(MCLib.Arr.lastItem([1, 2, 3]))   // 3

About

The MellowCobra Library for JavaScript is a collection of common methods for standard operations to fill in gaps in the existing standard JS library

Resources

License

Stars

Watchers

Forks

Packages

No packages published