📜  js 验证十六进制哈希 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:00.537000             🧑  作者: Mango

代码示例1
//Validate MongoDB ID
const oid = 'abcd56789012345678901234'
return oid.length === 24 &&  !isNaN(Number('0x' + oid)