object-visit
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -21,10 +21,11 @@ /*! | ||
if (typeof thisArg[method] !== 'function') { | ||
return thisArg; | ||
} | ||
target = target || {}; | ||
for (var key in target) { | ||
var fn = thisArg[method]; | ||
if (typeof fn === 'function') { | ||
fn(key, target[key]); | ||
} | ||
thisArg[method](key, target[key]); | ||
} | ||
return thisArg; | ||
}; |
{ | ||
"name": "object-visit", | ||
"description": "Call a specified method on each value in the given object.", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"homepage": "https://github.com/jonschlinkert/object-visit", | ||
@@ -6,0 +6,0 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", |
@@ -71,2 +71,2 @@ # object-visit [![NPM version](https://badge.fury.io/js/object-visit.svg)](http://badge.fury.io/js/object-visit) [![Build Status](https://travis-ci.org/jonschlinkert/object-visit.svg)](https://travis-ci.org/jonschlinkert/object-visit) | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 08, 2015._ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 09, 2015._ |
5122