(input)
| 1 | export default function assertString(input) { |
| 2 | if (input === undefined || input === null) throw new TypeError(`Expected a string but received a ${input}`); |
| 3 | if (input.constructor.name !== 'String') throw new TypeError(`Expected a string but received a ${input.constructor.name}`); |
| 4 | } |
no outgoing calls
no test coverage detected