We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a79d1c7 commit 9e31545Copy full SHA for 9e31545
lodash-deep.js
@@ -9,10 +9,11 @@
9
// Node.js support
10
var _;
11
var mixins = {};
12
- if(typeof require === 'function'){
+ if (typeof module !== 'undefined' && module.exports){
13
_ = require('lodash');
14
module.exports = mixins;
15
- } else{
+ }
16
+ else{
17
_ = window._;
18
}
19
@@ -58,7 +59,7 @@
58
59
return true;
60
},
61
/**
- * Retreives the value of a property in an object tree.
62
+ * Retrieves the value of a property in an object tree.
63
* @param {Object} object - The root object of the object tree.
64
* @param {string} propertyPath - The dot separated propertyPath.
65
* @returns {*} - The value, or undefined if it doesn't exists.
0 commit comments