(obj)
| 48 | * @param {Item<T>} obj an object |
| 49 | */ |
| 50 | const object = (obj) => { |
| 51 | for (const [key, value] of Object.entries(obj)) { |
| 52 | if (typeof value === "string" || Array.isArray(value)) { |
| 53 | fn(key, normalizeSimple(value, key)); |
| 54 | } else { |
| 55 | fn(key, normalizeOptions(value, key)); |
| 56 | } |
| 57 | } |
| 58 | }; |
| 59 | if (!options) { |
| 60 | // Do nothing |
| 61 | } else if (Array.isArray(options)) { |