1.0.3 • Published 5 years ago

guardily v1.0.3

Weekly downloads
2
License
GPL-3.0
Repository
github
Last release
5 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

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago