Closed mattheu closed 7 years ago
Ah, javascript. I never knew how to test specifically for a array, since it doesn't return a unique value with typeof
. Array.isArray()
is nice to know, filing that away for the future.
Also returning a structured empty array when there are no results seems like a good catch. I didn't notice any errors coming from returning null, but it seems better to be conservative with the return values there....
Ran into a couple of bugs in the new Select2 4 implementation
join
onnull
when updating. This is because JavaScript being JavaScript,'object' === typeof null
is true!