electron/spec-main/fixtures/module/function-with-properties.js
2020-03-20 13:28:31 -07:00

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
};