Initial commit
This commit is contained in:
12
node_modules/underscore/cjs/propertyOf.js
generated
vendored
Normal file
12
node_modules/underscore/cjs/propertyOf.js
generated
vendored
Normal file
@ -0,0 +1,12 @@
|
||||
var noop = require('./noop.js');
|
||||
var get = require('./get.js');
|
||||
|
||||
// Generates a function for a given object that returns a given property.
|
||||
function propertyOf(obj) {
|
||||
if (obj == null) return noop;
|
||||
return function(path) {
|
||||
return get(obj, path);
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = propertyOf;
|
Reference in New Issue
Block a user