lanka-validations - v2.1.0
    Preparing search index...

    Function isValidBranchCode

    • Validates a 3-digit CBSL branch code.

      Parameters

      • code: unknown

        Three-digit branch code, as text or a number.

      Returns boolean

      true if the code is three digits.

      isValidBranchCode('001'); // true
      isValidBranchCode('1'); // false