flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
10
VISUALIZACION/node_modules/underscore/modules/propertyOf.js
generated
vendored
Executable file
10
VISUALIZACION/node_modules/underscore/modules/propertyOf.js
generated
vendored
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
import noop from './noop.js';
|
||||
import get from './get.js';
|
||||
|
||||
// Generates a function for a given object that returns a given property.
|
||||
export default function propertyOf(obj) {
|
||||
if (obj == null) return noop;
|
||||
return function(path) {
|
||||
return get(obj, path);
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue