Last active
July 19, 2019 06:08
-
-
Save tobiasosDev/845a20a35bc543ce8e2aab50486b8532 to your computer and use it in GitHub Desktop.
Revisions
-
tobiasosDev revised this gist
Jul 19, 2019 . 1 changed file with 12 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,6 +8,18 @@ function createMenu(config) { }, config ); // Alternative would be /* { { title: "Foo", body: "Bar", buttonText: "Baz", cancellable: true }, ...config } */ // config now equals: {title: "Order", body: "Bar", buttonText: "Send", cancellable: true} // ... -
tobiasosDev created this gist
Jul 19, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ function createMenu(config) { config = Object.assign( { title: "Foo", body: "Bar", buttonText: "Baz", cancellable: true }, config ); // config now equals: {title: "Order", body: "Bar", buttonText: "Send", cancellable: true} // ... }