@amaryana/

RegalWarmheartedAcornbarnacle

JavaScript

No description

fork
loading
main.js
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