Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js map on object

import { map } from "ramda"

const double = x => x * 2;

const mappedObject = map(double, {x: 1, y: 2, z: 3}); //=> {x: 2, y: 4, z: 6}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #map #object
ADD COMMENT
Topic
Name
4+2 =