(val, max)
| 358 | } |
| 359 | |
| 360 | export const validateMaxLength = (val, max) => { |
| 361 | if (val.length > max) { |
| 362 | return `Value must be no longer than ${max} character${max !== 1 ? "s" : ""}` |
| 363 | } |
| 364 | } |
| 365 | |
| 366 | export const validateUniqueItems = (val, uniqueItems) => { |
| 367 | if (!val) { |
no outgoing calls
no test coverage detected
searching dependent graphs…