(validate)
| 142 | } |
| 143 | |
| 144 | export function hasRules(validate) { |
| 145 | if (validate) { |
| 146 | return validate.some((item) => { |
| 147 | return item.rules && item.rules.length; |
| 148 | }); |
| 149 | } |
| 150 | return false; |
| 151 | } |
| 152 | |
| 153 | export function startsWith(str, prefix) { |
| 154 | return str.lastIndexOf(prefix, 0) === 0; |
no outgoing calls
no test coverage detected