sheng-tool
    Preparing search index...

    Function isPostal

    • 验证邮政编码。

      Parameters

      • str: string

      Returns boolean

      0.0.1

      isPostal('100065')       // true
      isPostal('180123') // false