Conversation
|
This is awesome functionality to have. May I propose some refinements? A) We keep your proposed syntax as a shortcut, and also if you call it with one argument it returns the type: B) Because JsonLogic also has parsers in other languages that don't have JavaScript's peculiarities, sometimes we have to/get to make better choices. (e.g., our own truthy table ) So this method can/should call an array an array: On the other hand, I would side with JavaScript (over, say, PHP) and not differentiate between integers and floats: Do those make sense? |
|
Yeah, I don't particularly care for the multiple return types myself but it On Oct 26, 2016 12:13 PM, "Jeremy Wadhams" notifications@github.com wrote:
|
Adds typeof support for the simple operators.