invert-kv

WebJar for invert-kv

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

invert-kv
Last Version

Last Version

2.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

invert-kv
WebJar for invert-kv
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/sindresorhus/invert-kv

Download invert-kv

How to add to project

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

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.

invert-kv

Invert the key/value of an object. Example: {foo: 'bar'} โ†’ {bar: 'foo'}

Install

$ npm install invert-kv

Usage

const invertKeyValue = require('invert-kv');

invertKeyValue({foo: 'bar', '๐Ÿฆ„': '๐ŸŒˆ'});
//=> {bar: 'foo', '๐ŸŒˆ': '๐Ÿฆ„'}

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
2.0.0
1.0.0