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

object-manipulation

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-manipulation

nodejs object manipulation library

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

A quick and easy object manipulation library.

##ObjectManager.getDiffList(obj1, obj2, skipableRecursive)

obj1, and obj2, must be objects
skipableRecursive must be either a boolean or undefined

Parse an array of strings listing whether each part is new, old, updated, or equal.
skipableRecursive will stop the function from looping down into another layer
if there is an object with an object.

##ObjectManager.passNew(obj1, obj2, skipableRecursive)

Similar to getDiffList, but it will pass a object of which is only the new items

##ObjectManager.merg(obj1, obj2, recursive)

Will run though the two objects and merg objects 1 & 2 with 2 overwriting
object 1 where necessary.
recursive is default true

##ObjectManager.isFunction(item)

Will parse a boolean on whether item is a function or not

##ObjectManager.isObject(item)

Will parse a boolean on whether item is a object {} or not

##ObjectManager.isArray(item)

Will parse a boolean on whether item is a array [] or not

Keywords

FAQs

Package last updated on 26 Sep 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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc