modify-values

WebJar for modify-values

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

modify-values
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

modify-values
WebJar for modify-values
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/modify-values

Download modify-values

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/modify-values/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>modify-values</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/modify-values/
implementation 'org.webjars.npm:modify-values:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.npm/modify-values/
implementation ("org.webjars.npm:modify-values:1.0.1")
'org.webjars.npm:modify-values:jar:1.0.1'
<dependency org="org.webjars.npm" name="modify-values" rev="1.0.1">
  <artifact name="modify-values" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='modify-values', version='1.0.1')
)
libraryDependencies += "org.webjars.npm" % "modify-values" % "1.0.1"
[org.webjars.npm/modify-values "1.0.1"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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.


Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.

Versions

Version
1.0.1