doge-assert
TypeScript icon, indicating that this package has built-in type declarations

0.0.2 • Public • Published

doge-assert

import assert from 'doge-assert';

This is useful if you want to quickly typecheck something at runtime.

import assert from 'doge-assert';

let a = 'abc';
let b = '123';

assert({
  number: [
    a,
    b,
  ],
 }); // false

assert({
  string: [
    a,
    b,
  ],
 }); // true

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i doge-assert

      Weekly Downloads

      0

      Version

      0.0.2

      License

      GPL-3.0-or-later

      Unpacked Size

      2.68 kB

      Total Files

      7

      Last publish

      Collaborators

      • realprokopschield