Closed don closed 10 years ago
function isType(record, tnf, rtd) { if (record.tnf === tnf) { // TNF is 3-bit var recordType; if (typeof(rtd) === 'string') { recordType = rtd; } else { recordType = nfc.bytesToString(rtd); } return (nfc.bytesToString(record.type) === recordType); } return false; }