2.1.1 • Published 4 years ago

modify-values v2.1.1

Weekly downloads
1,873,711
License
MIT
Repository
github
Last release
4 years ago

modify-values

Modify the values of an object

Install

$ npm install modify-values

Usage

import modifyValues from 'modify-values';

modifyValues({foo: 'UNICORN'}, (value, key) => value.toLowerCase());
//=> {foo: 'unicorn'}

API

modifyValues(object, transformer)

Modifies the values and returns a new object.

object

Type: object

transformer(value, key)

Type: Function

Gets the value and key for each item and is expected to return the new value.

Related

See modify-keys for modifying the keys of an object.


archetype-libraryeasy-select-rnreact-native-bluetooth2killi8n-react-native-fast-imageairscanairscan-examplereact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdk@jttechnic/interpreterreact-native-printer-brothersreact-native-shekhar-bridge-testcogoportutils@oiti/documentoscopy-react-native@mink-opn/build-tokensquoc-test@infinitebrahmanuniverse/nolb-modiluminos-ui-core@everything-registry/sub-chunk-2190jawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgreact-native-jawwy_samplegriffin-ui-librarytailwind-vector-effecttest-library-123test-haptik-libwinx-form-winxwifi_configuration_packagetest-zeo-collectvision-camera-plugin-scan-facesvision-camera-base64-resizedvcloudcam-playkit-js-hlsvantiq-reactvue-dev-clonejrennsoh88-react-native-scroll-indicatorjesh-calculationjnf-accesscontrol-rnttljordy-frijters-test-libjamuskalimkhaled-salem-custom-componentslazy-bee-uiiiif-manifest-editorheroicdefenseluojia-cli-devlumerin-contractsl2forlerna@wecraftapps/react-native-use-keyboard@tlgeo/react-native-gdal@thinxviewx/core-rn@yplabs-ltd/react-native-detector@zalastax/nolb-modi@zotasys/nativeagent-get-agentadyen-rnawesome-module-kdastra-ufo-sdkarifbudixzarchlibrary@phong95/react-native-multiple-image-picker@ponchodien/react-native-printer-imin@positionex/position-sdkgenz-native-elementsframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newgaurav-react-native-loopgamification-integration-newdotex-plugindogandev-simple-toasteasyplayer-myfawaterak-online-paymentfawatrak-online-paymentfixed_form_builderfluent.adflow.reactnativesdkfluent.adflow.reactnativesdk-alphafmslfirebase-sign-in-with-ethereum@_nomtek/react-native-shimmer-animation@abhinavoneuipoc/stencil-test@praella/localisationist@blazinaj/app-kit@buganto/client@chauhan-rakesh/cardjs@chauhan-rakesh/chauhan-rakesh@cdk8s-extensions/argo-rollout@aysea/react-native-ui-library@azalpacir/react-native-dhp-printer@boundless-inc/mobiledoc-dom-renderer@brantalikp/rn-resizecandlelabssdkconnex_ram00nezconnex-kakilangcheckbox-component
2.1.1

4 years ago

2.1.0

5 years ago

2.0.0

5 years ago

1.0.1

8 years ago

1.0.0

11 years ago