From 4b5032e101de263aa7477dd4c0192ca8001ba38d Mon Sep 17 00:00:00 2001 From: Aaron Jensen Date: Tue, 10 Aug 2021 11:03:26 -0400 Subject: [PATCH] README is clarified --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5fdcb2f..03759f2 100644 --- a/README.md +++ b/README.md @@ -179,8 +179,8 @@ const result = u({ todos: addTodo }, state); expect(result).to.eql({ todos: [{ done: false }, { done: false }, { done: false }]}); ``` -[lodash/fp](https://github.com/lodash/lodash/wiki/FP-Guide) is one of the many -libraries providing good utility functions for such manipulations. +[lodash/fp] is one of the many libraries providing good utility functions for +such manipulations. ```js import fp from 'lodash/fp'; @@ -194,9 +194,11 @@ let state = { // add a new todo state = u({ todos: fp.concat({ done: false }) }, state); +expect(state).to.eql({ todos: [{ done: true }, { done: false }, { done: false }]}); // remove all done todos state = u({ todos: fp.reject({ done: true }) }, state); +expect(state).to.eql({ todos: [{ done: false }, { done: false }]}); ``` #### When null or undefined object, updeep uses a default object