Socket
Book a DemoInstallSign in
Socket

functional128

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

functional128

Functional programming made easy

1.2.0
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

Functional128 (F)

Functional programming made easy

How to use F?

Using npm

npm i -S functional128
const F = require("functional128");

Using bower

bower i -S functional128
<script src="bower_components/functional128/build/functional128.js"></script>

Start coding

const sum = (a, b) => a + b;

const add = F.curry(sum)(2);

const adder = F.map(add);

adder([ 0, 1, 2 ]); // [ 2, 3, 4 ]

const users = [
    {
        name: "User A",
        age: 16
    },
    {
        name: "User B",
        age: 18
    }
];

const ages = F.pluck(users, "ages"); // [ 16, 18 ]

const over16 = F.every(age => age >= 16);
const over18 = F.every(age => age >= 18);

over16(ages); // true
over18(ages); // false

More documentation will follow soon.

Keywords

functional128

FAQs

Package last updated on 10 Jul 2016

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.