1.0.3 • Published 6 years ago

guardily v1.0.3

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
6 years ago

guardily

Helper method that guards function parameters

description

Exports a Guard helper method:

install

yarn add guardily npm install guardily

usage

ts:

import { Guard } from "guardily";

// don't throw exception, use a custom callback
const testFunc = x => {
  Guard.argumentNotValid(
    x,
    "x",
    { doNotThrow: true, useCallback: true },
    null,
    () => {
      console.log("argument is not valid");
    }
  );
};
1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago