New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

lodash-enfuego

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash-enfuego

Node.JS lodash mixins

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

lodash-enfuego

Node.JS lodash mixins

Usage

var _ = require('lodash');

_.mixin(require('lodash-enfuego'));

Examples

var user = {
  name: 'Joe Bob'
};

_.hasPath(user, 'name');    // true

var user = {
  name: 'Joe Bob',
  friends: {
    william: {
      hometown: 'New York City',
      age: 30
    }
  }
};

_.hasPath(user, 'friends.william');               // true
_.hasPath(user, 'friends.emily');                 // false
_.hasNumber(user, 'friends.william.age');         // true
_.hasNumber(user, 'friends.william.hometown');    // false

API

_.hasPath(object, 'path.to.property')

Returns true or false.

.hasNumber(object, 'path.to.property')

Returns true or false.

.setPath(object, 'path.to.property', value)

Recusively create a path on an object, setting the value of the final property to value. If value is excluded then null will be used as the final property value.

Returns true or false.

FAQs

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc