underscore-deep-extend
Advanced tools
Comparing version 0.0.3 to 0.0.5
/* implementation: Copyright (C) 2012-2013 Kurt Milam - http://xioup.com | Source: https://gist.github.com/1868955 | ||
* NPM packaging: Copyright (C) 2012-2014 Pierre-Yves Gérardy | https://github.com/pygy/underscodeDeepExtend | ||
* NPM packaging: Copyright (C) 2012-2014 Pierre-Yves Gérardy | https://github.com/pygy/underscoreDeepExtend | ||
* | ||
@@ -24,3 +24,3 @@ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
if (hasOwnProperty.call(source, prop)) { | ||
if (_.isUndefined(obj[prop]) || _.isFunction(obj[prop]) || _.isNull(source[prop])) { | ||
if (_.isUndefined(obj[prop]) || _.isFunction(obj[prop]) || _.isNull(source[prop]) || _.isDate(source[prop])) { | ||
obj[prop] = source[prop]; | ||
@@ -27,0 +27,0 @@ } |
@@ -21,3 +21,3 @@ { | ||
"license": "MIT", | ||
"version": "0.0.3", | ||
"version": "0.0.5", | ||
"repository": { | ||
@@ -24,0 +24,0 @@ "type": "git", |
@@ -23,3 +23,3 @@ # _.deepExtend | ||
- [lodash.js](http://lodash.com/) | ||
- another clone that provides _.each and _.is(Array|Object|String|Undefined). | ||
- another clone that provides `_.each` and `_.is(Array|Date|Null|Object|String|Undefined)`. | ||
@@ -26,0 +26,0 @@ ## Usage: |
8745
7
70