You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dot-prop-immutable-chain

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-prop-immutable-chain

Allows chaining methods of dot-prop-immutable library

0.0.3
latest
Source
npmnpm
Version published
Weekly downloads
894
39.04%
Maintainers
1
Weekly downloads
 
Created
Source

dot-prop-immutable-chain

Travis CI

This module allows you to chain methods of the dot-prop-immutable library.

npm install dot-prop-immutable-chain

Usage

The module exports a single function that creates a wrapper object around given object. The wrapper will contain all methods of the dot-prop-immutable library.

You must explicitly unwrap your object with value() method.

// import the library first
var dotProp = require('dot-prop-immutable-chain')

// invoke dotProp passing object to wrap it
var next = dotProp(previous)
  .set('foo', 'bar')
  .toggle('baz')
  .value() // don't forget unwrap your object

You may still use all methods of the original dot-prop-immutable library if you want.

var next = dotProp.set(previous, 'foo', 'bar')
next = dotProp.toggle(next, 'baz')

Bugs and fixes

  • Raise an issue if you want to report an error, request a feature or just ask a question.
  • Please file an issue as well before start working on the pull request.

FAQs

Package last updated on 27 Apr 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts