Closed tjvr closed 7 years ago
I was initially going to allow this when I was implementing states, but I couldn't think of any reasonable use cases.
Fixed in 2efc96b (numbers now throw an error, since they're not supported).
Perhaps only disallow numbers that aren't 1
? Some people like to use {flag: 1}
in object literals because it's short and truthy.
Okay! 7641fd1
...I was convinced that you could pop multiple states, but that doesn't appear to currently be the case.
Is this useful, or should I amend the documentation to make clear you can't?