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-27 21:57:43 +07:00
2019-08-01 09:17:38 +07:00
2019-07-31 07:19:22 +08:00
2019-01-18 20:15:13 +01:00
2019-09-14 11:58:00 +07:00
2019-09-14 11:58:00 +07:00
2019-09-14 12:59:08 +07:00
Description
No description provided
2.5 MiB
Languages
TypeScript 97.9%
JavaScript 2%