f57179795a244d484c59cdfb4279173cbbea8fc9
[platform/framework/web/crosswalk-tizen.git] /
1 var forIn = require('./forIn');
2
3     /**
4      * return a list of all enumerable properties that have function values
5      */
6     function functions(obj){
7         var keys = [];
8         forIn(obj, function(val, key){
9             if (typeof val === 'function'){
10                 keys.push(key);
11             }
12         });
13         return keys.sort();
14     }
15
16     module.exports = functions;
17
18