17 lines
221 B
JavaScript
17 lines
221 B
JavaScript
function foo () {
|
|
return 'hello';
|
|
}
|
|
foo.bar = 'baz';
|
|
foo.nested = {
|
|
prop: 'yes'
|
|
};
|
|
foo.method1 = function () {
|
|
return 'world';
|
|
};
|
|
foo.method1.prop1 = function () {
|
|
return 123;
|
|
};
|
|
|
|
module.exports = {
|
|
foo: foo
|
|
};
|