diff --git a/README.md b/README.md index be645bfd..3da35b7a 100644 --- a/README.md +++ b/README.md @@ -2173,7 +2173,7 @@ Maps the given object with the given function. ```typescript ( - f: (value: any, key: string, context: object) => boolean + f: (value: any, key: string, context: object) => any ) => (xs: object) => object ``` diff --git a/object/README.md b/object/README.md index 451f4868..3960c7c7 100644 --- a/object/README.md +++ b/object/README.md @@ -245,7 +245,7 @@ Maps the given object with the given function. ```typescript ( - f: (value: any, key: string, context: object) => boolean + f: (value: any, key: string, context: object) => any ) => (xs: object) => object ``` diff --git a/object/map.json b/object/map.json index 285b441e..106f1850 100644 --- a/object/map.json +++ b/object/map.json @@ -1,7 +1,7 @@ { "name": "map", "description": "Maps the given object with the given function.", - "signature": "(\n f: (value: any, key: string, context: object) => boolean\n) => (xs: object) => object", + "signature": "(\n f: (value: any, key: string, context: object) => any\n) => (xs: object) => object", "examples": [ { "language": "javascript", diff --git a/object/map.md b/object/map.md index 27139942..d72d6108 100644 --- a/object/map.md +++ b/object/map.md @@ -7,7 +7,7 @@ Maps the given object with the given function. ```typescript ( - f: (value: any, key: string, context: object) => boolean + f: (value: any, key: string, context: object) => any ) => (xs: object) => object ``` diff --git a/object/map.ts b/object/map.ts index ed01d9b5..2b6189aa 100644 --- a/object/map.ts +++ b/object/map.ts @@ -1,6 +1,6 @@ import fromEntries from "./fromEntries"; import mapEntries from "./mapEntries"; -export default (f: (value: any, key: string, context: object) => boolean) => ( +export default (f: (value: any, key: string, context: object) => any) => ( xs: object ): object => fromEntries(mapEntries(f)(xs));