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

namedparams

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

namedparams

for naming function parameters for convenience

latest
npmnpm
Version
0.0.6
Version published
Maintainers
1
Created
Source

namedparams

Installation:

npm i namedparams

Usage:

var name = require('namedparams');

const addOrderedArrays = (a, b) => a.map((elem, i) => elem + ' : ' + b[i]);
const namedAddOrderedArrays = name(addOrderedArrays, 'first', 'second');
//Naming pulls all the elements into an array,
namedAddOrderedArrays('second', 10, 3, 7, 'first', 1, 2, 4, 'second', 6, 'first', 8);
//[ '1 : 10', '2 : 3', '4 : 7', '8 : 6' ]

Created by Julian Knodt

MIT

Keywords

functional

FAQs

Package last updated on 20 Dec 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