MCPcopy Index your code
hub / github.com/CodeboxIDE/codebox / methodObj

Function methodObj

core/utils.js:75–84  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

73//
74// !!! This is not recursive (not needed)
75function methodObj(obj) {
76 var methods = _.methods(obj);
77 var newObj = {};
78
79 methods.forEach(function(method) {
80 newObj[method] = obj[method].bind(obj);
81 });
82
83 return newObj;
84}
85
86// Return a timestamp of the curent time
87function timestamp() {

Callers 1

setupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected