You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP
Socket
Sign inDemoInstall
Socket

functional-augments-object

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

functional-augments-object

Augment the Object prototype with methods for functional programming, including filter(), map() and reduce().

0.1.1
latest
Source
npm
Version published
Weekly downloads
11
83.33%
Maintainers
1
Weekly downloads
 
Created
Source

Functional Augments for ES6 objects

Build Status

This package augments the Object.prototype to provide ES6 objects with methods for functional programming similar to Arrays. Currently the following methods are provided:

  • filter()
  • map()
  • reduce()

Installation

$ npm install --save functional-augments-object

Usage

'use strict';

require('functional-augments-object');

const object = {
  one: 1,
  two: 2,
  three: 3
};

const reduction = object.reduce((acc, v) => acc + v);

console.log(reduction); // 6

Keywords

augment

FAQs

Package last updated on 17 Jan 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