List Properties of an object in javascript

علی ذوالفقار
1401/01/09 11:24:35 (529)
function listProperties(obj) {
    for (var item in obj) {        
        try {
            console.log(item , ';' , obj(item).toString());
        } catch (err) {
            console.log(err.message);
        }
    }
}
Back