Write a function that throws an error. Contstraints:
do not use throw
one line only
simply returning an Error is not sufficient (since it's not ...
For further actions, you may consider blocking this person and/or reporting abuse
Uuh, love me some code golf!
Shortest implementation of any error I could think of would be something like this:
12 characters.
And then using it like so:
Throws
Cannot read properties of undefined (reading '_'), though there's no error if the function receives an object as argument with_defined.Without depending on the input but more lines
Spoiler