UNPKG

autsaepe

Version:

The encoder and decoder for Conflux Network address

9 lines (7 loc) 193 B
"use strict"; exports.isHexString = function (v) { return typeof v === 'string' && v.match(/^0x[0-9A-Fa-f]*$/); }; exports.isString = function (data) { return typeof data === 'string'; };