New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

tiny-dash

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

tiny-dash

Functional utilities from native js

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

Tiny-dash

WHY?

I love the point free style code, but to use it we need to import 3rd party libraries. This tiny module leverages Js own array methods, just swaps the order. Allowing for piping and currying.

Note it's uses es6 modules and some fancy newer node features so be aware.

Usage

Just import as you would import any module and use the functions you need.

import T from 'tiny-dash';

T.map(console.log, [1,2,3]);

This module supports most of the common methods from array which allow for fp style code by chaining. E.G. map, filter, reduce and so on.

Extra functions added are curry, pipe and compose.

Keywords

fp

FAQs

Package last updated on 03 Nov 2018

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