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]);
  })

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i deepvalidate

      Weekly Downloads

      1

      Version

      0.0.4

      License

      BSD-2-Clause

      Last publish

      Collaborators

      • simonmcmanus