Skip to content

Commit 98cdb87

Browse files
committed
feat(nullable): add getUnsafe
1 parent cf91c9e commit 98cdb87

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Core__Nullable.res

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ let getExn: t<'a> => 'a = value =>
1919
| Some(x) => x
2020
| None => raise(Invalid_argument("Nullable.getExn: value is null or undefined"))
2121
}
22+
23+
external getUnsafe: t<'a> => 'a = "%identity"

0 commit comments

Comments
 (0)