@zakodium/utils
    Preparing search index...

    @zakodium/utils

    @zakodium/utils

    NPM version npm download test coverage license

    Small utilities by zakodium for zakodium.

    npm install @zakodium/utils
    
    import { assertNotNullish } from '@zakodium/utils';

    const value: object | string | number | boolean | null | undefined = JSON.parse(someJsonString);

    assertNotNullish(value); // throws if value is null or undefined

    value;
    // value type is object | string | number | boolean

    Total TypeScript from Matt Pocock is a great inspiration for type utilities exported by this package.

    MIT