From cc0cbb5a5fbbe65e586757e0b20167649b3764fe Mon Sep 17 00:00:00 2001 From: David Guijarro Date: Tue, 23 Jun 2020 11:13:08 +0200 Subject: [PATCH] fix: export `mapValues()` and add it to the readme --- README.md | 1 + src/index.ts | 7 ++++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 75e7aa5..b221256 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,7 @@ shuffle([1, 2, 3, 4, 5]); // returns [2, 5, 3, 4, 1] - `difference()` — Takes two arrays and returns the difference between them as a new array. [See documentation.](https://davguij.github.io/utilist/modules/_difference_.html) - `isDate()` — Assesses if the input is of the type Date. [See documentation.](https://davguij.github.io/utilist/modules/_is_date_.html) - `isEqual()` — Compares two objects and returns whether their values are equivalent. [See documentation.](https://davguij.github.io/utilist/modules/_is_equal_.html) +- `mapValues()` — Like `map()` but applied to the values of an object. [See documentation.](https://davguij.github.io/utilist/modules/_map_values_.html) - `occurrences()` — Counts the number of times that a substring appears in a string. [See documentation.](https://davguij.github.io/utilist/modules/_occurrences_.html) - `omit()` — Removes a list of properties from an object. [See documentation.](https://davguij.github.io/utilist/modules/_omit_.html) - `random()` — Generates a random integer between a minimum and a maximum. [See documentation.](https://davguij.github.io/utilist/modules/_random_.html) diff --git a/src/index.ts b/src/index.ts index f982223..c14f4c3 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,8 +1,9 @@ +export * from './difference'; export * from './is-date'; export * from './is-equal'; +export * from './map-values'; +export * from './occurrences'; +export * from './omit'; export * from './random'; export * from './sample'; export * from './shuffle'; -export * from './omit'; -export * from './occurrences'; -export * from './difference';