@amaryana/

RegalWarmheartedAcornbarnacle

JavaScript

No description

fork
loading

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.7492015499722329","path":"main.js","file":{"path":"main.js","content":{"asEncoding":{"base64":"ZnVuY3Rpb24gb25seVRoZVRydXRoeShvYmopew0KICAgIHZhciByZXN1bHQgPSB7fTsNCiAgICBmb3IodmFyIHAgaW4gb2JqKXsNCiAgICAgICAgaWYob2JqLmhhc093blByb3BlcnR5KHApICYmIG9ialtwXSl7DQogICAgICAgICAgICByZXN1bHRbcF0gPSBvYmpbcF07DQogICAgICAgIH0NCiAgICB9DQogICAgcmV0dXJuIHJlc3VsdDsNCn0="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
function onlyTheTruthy(obj){
    var result = {};
    for(var p in obj){
        if(obj.hasOwnProperty(p) && obj[p]){
            result[p] = obj[p];
        }
    }
    return result;
}
Native Browser JavaScript