Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hnp

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

hnp

The hasNestedProperty method missing in Object. This module does not extend Object.

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
5K
decreased by-19.53%
Maintainers
1
Weekly downloads
 
Created
Source

hnp - hasNestedProperty method

Usage

var hasNestedProperty = require('hnp');

var o = {
	lol : {
		yes : 'why?'
	}
};

// hasNestedProperty(object,path)
if(hasNestedProperty(o,'lol.yes')) console.log('yes property is there');
if(hasNestedProperty(o,'lol.no') === false) console.log('no property is not available');

Licence

Copyright(C) 2012-2015 Rémy Loubradou

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004

Copyright (C) 2004 Sam Hocevar sam@hocevar.net

Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed.

    DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 

TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

  1. You just DO WHAT THE FUCK YOU WANT TO.

Keywords

FAQs

Package last updated on 10 Dec 2015

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