1.0.17 • Published 2 years ago
leaf-util v1.0.17
leaf-util
Personal maintenance of some common tool libraries
- The leaf-util is still a work in progress, so if you have comments or feature suggestions, you can contact https://github.com/yyyz1011/leaf-util/issues or 1540032876@qq.com
Usage
yarn add leaf-util
import { isColor } from "leaf-util";
Function
isColor
Determines whether the string is a hexadecimal color valueisPhone
Check if it's a cell phone numberisMail
Verify that the mailbox format is correctisObject
Verify whether it is objectisQQAccount
Verify the QQ account is correctisWeChatAccount
Verify the WeChat account is correctisPC
Check whether it is a PC pageformatPrice
Digital conversion currency formatflatObjectByChained
Chain flattening of an objectcurrentBrowser
Check the current browser type