UNPKG

@harmoniclabs/plu-ts-onchain

Version:

An embedded DSL for Cardano smart contracts creation coupled with a library for Cardano transactions, all in Typescript

11 lines (10 loc) 351 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isHex = void 0; var hexChars = Object.freeze(Array.from("0123456789abcdef")); function isHex(str) { if (!(typeof str === "string")) return false; return Array.from(str).every(function (ch) { return hexChars.includes(ch); }); } exports.isHex = isHex;