Socket
Book a DemoInstallSign in
Socket

@ersinfotech/chain

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ersinfotech/chain

Chaining lodash individual method

0.1.0
latest
npmnpm
Version published
Maintainers
1
Created
Source

chain

Chaining lodash individual method

Usage

import chain from 'chain';
import flatten from 'lodash/array/flatten';
import compact from 'lodash/array/compact';
import map from 'lodash/collection/map';

var list = [
  [1, null, 2],
  null,
  3
];

var result = chain(list)
  .thru(flatten)
  .thru(compact)
  .tap(d => console.log(d)) // [1, 2, 3]
  .thru(map, d => d + 1)
  .value() // [2, 3, 4]

License

MIT

FAQs

Package last updated on 21 Sep 2015

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.