Skip to content

isValidOid

Check if given string is valid Oid.

Signature

ts
function isValidOid(value: string): boolean;

Parameters

  • valuerequired · string

    String to check if is valid Oid.

Returns

  • boolean

    Returns false if the string is empty, is longer than 40 hex
    characters, or contains any non-hex characters.

Released under the MIT License.