From a297e6a6037c6c8c3f1a836cde3300621ab550b7 Mon Sep 17 00:00:00 2001 From: Patrick Kunka Date: Fri, 22 Dec 2017 12:37:10 +0000 Subject: [PATCH 1/2] Update README.md --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c2026f0..e09a9ba 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ import merge from 'helpful-merge'; // Configuration interface with defaults: const target = Object.seal({ - animationDuration: 50 - easing: 'ease-in-out' + foo: 50 + bar: 'ease-in-out' }); // Arbitrary consumer-provided options: const source = { - animatonDuration: 300 + Foo: 300 }; // Merge consumer options over defaults: @@ -26,7 +26,7 @@ merge(target, source); ``` For the above example, Helpful Merge would throw the following exception: -**TypeError: Unknown property "animatonDuration". Did you mean "animationDuration"?** +**TypeError: Unknown property "Foo". Did you mean "foo"?** Helpful Merge is great for creating robust and helpful entry points for JavaScript libraries and APIs and also includes efficient and customizable implementations of deep recursive merge, array merge, and more. From 2f517ac0d21eed7eecfc13966272368858213335 Mon Sep 17 00:00:00 2001 From: Patrick Kunka Date: Fri, 22 Dec 2017 12:37:31 +0000 Subject: [PATCH 2/2] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e09a9ba..85d28c0 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ import merge from 'helpful-merge'; // Configuration interface with defaults: const target = Object.seal({ foo: 50 - bar: 'ease-in-out' + bar: false }); // Arbitrary consumer-provided options: