1.0.0 • Published 6 years ago

reconstruct v1.0.0

Weekly downloads
180
License
MIT
Repository
github
Last release
6 years ago

Reconstruct

Build Status

Maps object into a new one using an anonymous function.

Installation

Install it using Yarn or NPM.

yarn add reconstruct

# With NPM
npm i reconstruct

Usage

Reconstruct provides a function to map an iterate over object value & properties returning new one to compose result.

import reconstruct from 'reconstruct'

const invert = (value, property) => ({ [value]: property })

reconstruct({ A: 1, B: 2 }, invert) == { '1': 'A', '2': 'B' }

License

Released under MIT license. You can see it here.

1.0.0

6 years ago

0.3.0

6 years ago

0.2.1

6 years ago

0.2.0

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago