Better-Tools

Simple tools lib with a bunch of useful functions

Typescript

Build with Typescript and ready to use

Minimal

Minimal dependencies for size and safety

Open

View the code, push a merge request or add more tests

About

Over time you re-use functions over and over, so why not just lump them cleanly into a lib to make your life easier?

Get started

Install the library

npm i --save @bettercorp/tools

Import the library

import { Tools } from '@bettercorp/tools';
const Tools = require('@bettercorp/tools').Tools;

Examples

Check if an array is actually an array

Tools.isArray([]); // will return true
Tools.isArray(4); // will return false