From 81fdcb99538633430792b5b3d75f7b90e0457c9b Mon Sep 17 00:00:00 2001 From: Timur Sevimli Date: Sun, 18 Feb 2024 16:42:37 +0300 Subject: [PATCH] Create methods path --- examples/methods/a-simple.js | 9 +++++++++ examples/methods/b-simple.js | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 examples/methods/a-simple.js create mode 100644 examples/methods/b-simple.js 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, +});