You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

lodash.isarguments

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.isarguments

The lodash method `_.isArguments` exported as a module.


Version published
Weekly downloads
5.1M
decreased by-19.2%
Maintainers
3
Install size
9.81 kB
Created
Weekly downloads
 

Package description

What is lodash.isarguments?

The lodash.isarguments package is a utility function that checks if a given value is an arguments object. This is useful for type checking and ensuring that the value being worked with is indeed an arguments object, which is a special type of object in JavaScript that holds the arguments passed to a function.

What are lodash.isarguments's main functionalities?

Check if a value is an arguments object

This feature allows you to check if a given value is an arguments object. In the code sample, the `isArguments` function is used to check if the `arguments` object inside `exampleFunction` is indeed an arguments object, which returns true. It also checks if a regular array is an arguments object, which returns false.

const isArguments = require('lodash.isarguments');

function exampleFunction() {
  console.log(isArguments(arguments)); // true
}

exampleFunction();
console.log(isArguments([1, 2, 3])); // false

Other packages similar to lodash.isarguments

Readme

Source

lodash.isarguments v3.1.0

The lodash method _.isArguments exported as a Node.js module.

Installation

Using npm:

$ {sudo -H} npm i -g npm
$ npm i --save lodash.isarguments

In Node.js:

var isArguments = require('lodash.isarguments');

See the documentation or package source for more details.

Keywords

FAQs

Package last updated on 13 Aug 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc