UNPKG

@melonproject/token-math

Version:

A small helper library to do precision safe calculations

10 lines (9 loc) 429 B
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const isEqual_1 = __importDefault(require("./isEqual")); const toBI_1 = __importDefault(require("./toBI")); const isZero = (a) => isEqual_1.default(toBI_1.default(a), toBI_1.default(0)); exports.default = isZero;