UNPKG

159 BJavaScriptView Raw
1/**
2 * 正则match可以匹配上第一个缓存
3 */
4export const hasReg = (
5 token: Any
6) => {
7 return (token && token.length && token.length >= 1);
8};