I have this GorillaScript code to flatten arrays:
Array::compact := #
for filter value in this
value and (typeof value.isempty != 'function' or not value.isempty()) and (typeof value != 'object' or Object.keys(value).length != 0)
GorillaScript is kinda dead. Could someone translate this into LiveScript for me please? I'm quite new to LiveScript.