js validate hex hash

Solutions on MaxInterview for js validate hex hash by the best coders in the world

showing results for - "js validate hex hash"
Federico
17 May 2017
1//Validate MongoDB ID
2const oid = 'abcd56789012345678901234'
3return oid.length === 24 &&  !isNaN(Number('0x' + oid)