deepvalidate

0.0.4 • Public • Published

#Deep Validate

Given two objects, check that the data given in the first object is present in the second object.

Also checks that the types of the two values are the same.

##Usage:

  validate('objects', obj1, obj2, function(obj1, obj2, key, failure, name) {
    console.log(obj1[key]);
  })

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.4
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.4
    0
  • 0.0.3
    0
  • 0.0.2
    1

Package Sidebar

Install

npm i deepvalidate

Weekly Downloads

1

Version

0.0.4

License

BSD-2-Clause

Last publish

Collaborators

  • simonmcmanus