(n: bigint)
| 721 | * @since 2.0.0 |
| 722 | */ |
| 723 | export const sqrt = (n: bigint): Option.Option<bigint> => |
| 724 | isGreaterThanOrEqualTo(n, bigint0) ? Option.some(sqrtUnsafe(n)) : Option.none() |
| 725 | |
| 726 | /** |
| 727 | * Takes an `Iterable` of `bigint`s and returns their sum as a single `bigint`. Returns `0n` for an empty iterable. |
nothing calls this directly
no test coverage detected