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

named-args

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

named-args

Named arguments in JavaScript

latest
Source
npmnpm
Version
0.2.0
Version published
Weekly downloads
1
-50%
Maintainers
1
Weekly downloads
 
Created
Source

named-args

Ever wish JavaScript had named arguments?

function sortableName(first, middle, last) {
  return last + ', ' + first + ' ' + middle;
}

sortableName.withArgs({
  last: 'Smith',
  first: 'Peter',
  middle: 'M'
});
// => 'Smith, Peter M'

Ever wish that arguments were object-like instead of array-like?

function f(x, y, z) {
  console.log(arguments.named());
}

f(1, 2, 3);
// => { x: 1, y: 2, z: 3 }

There you go. Don't say I never gave you anything.

FAQs

Package last updated on 22 Apr 2014

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