is-object-id
v1.0.1
Published
Test if a string is a valid mongo object id
Downloads
12
Maintainers
Readme
is-object-id
Check if a string is formatted as a valid mongo object id
#Example
var isObjectID = require('is-object-id');
isObjectID('1123456789abcdef11111111'); // true
isObjectID('1'); // false
isObjectID(['this is an array']); // false
That's it really.