Jerko Steiner fb41c2ce69 Add @rondo.dev/common guard fn
This is to help guard against types that can be undefined since the
recommended eslint rules recommend against using `!` operator on values
like:

    const obj: Obj | undefined = ...
    obj!.value

Now we can use:

    const obj: Obj | undefined = ...
    const obj2: Obj = guard(isDefined, obj)
    obj.value

The guard function will throw an error if obj parameter is undefined.
2019-09-15 11:40:31 +07:00
..
2019-09-15 11:40:31 +07:00
2019-08-25 11:33:06 +07:00
2019-09-14 12:01:29 +07:00