Answers for "js validate mongodb id"

0

js validate mongodb id

//Validate MongoDB ID
const oid = 'abcd56789012345678901234'
return oid.length === 24 &&  !isNaN(Number('0x' + oid))
Posted by: Guest on January-26-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language