amis-rpc-design/node_modules/nullthrows
2023-10-07 19:42:30 +08:00
..
LICENSE v1.0.0 2023-10-07 19:42:30 +08:00
nullthrows.d.ts v1.0.0 2023-10-07 19:42:30 +08:00
nullthrows.js v1.0.0 2023-10-07 19:42:30 +08:00
nullthrows.js.flow v1.0.0 2023-10-07 19:42:30 +08:00
package.json v1.0.0 2023-10-07 19:42:30 +08:00
README.md v1.0.0 2023-10-07 19:42:30 +08:00

nullthrows

Build Status

A flow typed utility that accepts value (e.g. nullthrows(value)) and throws if value is null or undefined, otherwise it returns value.

Also see invariant.