2016-08-16 20:54:21 +00:00
|
|
|
function foo () {
|
2020-03-20 20:28:31 +00:00
|
|
|
return 'hello';
|
2016-08-16 20:54:21 +00:00
|
|
|
}
|
2020-03-20 20:28:31 +00:00
|
|
|
foo.bar = 'baz';
|
2016-08-16 17:37:51 +00:00
|
|
|
foo.nested = {
|
|
|
|
prop: 'yes'
|
2020-03-20 20:28:31 +00:00
|
|
|
};
|
2016-08-16 20:54:21 +00:00
|
|
|
foo.method1 = function () {
|
2020-03-20 20:28:31 +00:00
|
|
|
return 'world';
|
|
|
|
};
|
2016-08-16 20:54:21 +00:00
|
|
|
foo.method1.prop1 = function () {
|
2020-03-20 20:28:31 +00:00
|
|
|
return 123;
|
|
|
|
};
|
2016-08-16 16:24:38 +00:00
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
foo: foo
|
2020-03-20 20:28:31 +00:00
|
|
|
};
|