diff --git a/examples/methods/a-simple.js b/examples/methods/a-simple.js new file mode 100644 index 0000000..27839b7 --- /dev/null +++ b/examples/methods/a-simple.js @@ -0,0 +1,9 @@ +({ + field: 'value', + + add(a, b) { + return a + b; + }, + + sub: (a, b) => a - b, +}); diff --git a/examples/methods/b-simple.js b/examples/methods/b-simple.js new file mode 100644 index 0000000..27839b7 --- /dev/null +++ b/examples/methods/b-simple.js @@ -0,0 +1,9 @@ +({ + field: 'value', + + add(a, b) { + return a + b; + }, + + sub: (a, b) => a - b, +});